-1

I am looking for some free/opensource GIS api/sdk (preferably in Java) to accomplish following workflow.

I have couple of raster files like tif, and vector files like shapefiles with associated SLD styles. I have to create map from these files and export it to image map (png) with graphic scale and legend. Preferably also with north arrow and title.

Any recommendations?

Vince
  • 20,017
  • 15
  • 45
  • 64
makak
  • 291
  • 1
  • 9

1 Answers1

1

GeoTools is the obvious (to me) choice here. This answer should get you going with the vector - adding a raster is covered in the image tutorial.

Adding a title and north arrow are just standard Java graphics rendering operations.

There is a lot of code to draw "map decorations" in the GeoServer code base see https://github.com/geoserver/geoserver/tree/main/src/wms/src/main/java/org/geoserver/wms/decoration and legends at https://github.com/geoserver/geoserver/tree/main/src/wms/src/main/java/org/geoserver/wms/legendgraphic

Ian Turton
  • 81,417
  • 6
  • 84
  • 185
  • Thank you. I think that GeoTools would do do job. I just coudn't find a sample with graphic scale and legend, could you please point me to some? – makak Apr 29 '21 at 13:47