Skip to main content
Question

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

  • December 14, 2020
  • 6 replies
  • 131 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

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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

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

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

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

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

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