Skip to main content
Question

How to convert shapefile to mbtiles and output file keeps input name?

  • December 14, 2020
  • 6 replies
  • 94 views

hoa_le
Contributor
Forum|alt.badge.img+5

Hi all,

I am studying convert shapefile to .Mbtiles. But the output name I can't set as input file name.

I attacted my workspace in the below.

Could you tell me how to make output file the same input file?

Thank you

 

6 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • December 14, 2020

Use am AttributeCreator to put fme_basename in a "FileName" attribute, in the MapnickRasterizer set the GroupBy Parameter to the FileName attribute you created earlier, then set your writer Raster File Name parameter to the same attribute.

The only way to pass an attribute through the MapnickRasterizer is to use GroupBy


hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • December 14, 2020
caracadrian wrote:

Use am AttributeCreator to put fme_basename in a "FileName" attribute, in the MapnickRasterizer set the GroupBy Parameter to the FileName attribute you created earlier, then set your writer Raster File Name parameter to the same attribute.

The only way to pass an attribute through the MapnickRasterizer is to use GroupBy

Thank you so much @caracadrian​ .

I want to ask a bit, can I style 2 condition in mapnickRasterizer. It means I want format based on attribute "reclass" in my workspace. How can I do?


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • December 14, 2020
hoa_le wrote:

Thank you so much @caracadrian​ .

I want to ask a bit, can I style 2 condition in mapnickRasterizer. It means I want format based on attribute "reclass" in my workspace. How can I do?

Add it to GroupBy


hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • December 14, 2020
hoa_le wrote:

Thank you so much @caracadrian​ .

I want to ask a bit, can I style 2 condition in mapnickRasterizer. It means I want format based on attribute "reclass" in my workspace. How can I do?

Thank you so much :)


hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • December 15, 2020
caracadrian wrote:

Use am AttributeCreator to put fme_basename in a "FileName" attribute, in the MapnickRasterizer set the GroupBy Parameter to the FileName attribute you created earlier, then set your writer Raster File Name parameter to the same attribute.

The only way to pass an attribute through the MapnickRasterizer is to use GroupBy

Hi @caracadrian​ 

When I export to .Mbtiles, I feel the resolution is not good. May be the cause is my settings.

Could you tell me how to make high resolution? Thank you

modelFME_tileMill


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • December 15, 2020
hoa_le wrote:

Hi @caracadrian​ 

When I export to .Mbtiles, I feel the resolution is not good. May be the cause is my settings.

Could you tell me how to make high resolution? Thank you

modelFME_tileMill

@hoa_le​  play with the Cell Spacing parameter on MapnickRasterizer

Raster properties


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings