Background I have a lot of, I mean a lot of rasters (GeoTiffs, around 10000) stored in a PostgreGIS database. I have developed a website and I want to allow users to extract a raster based on its storage date and display it on a base map. The following image is expressing an example of what I wan to do. GeoTiff on an OSM map

I have used ArcGIS for Server 10.2, PostgreSQL 9.2, Windows 7 Ultimate, OpenLayers, and back-end is written in ASP.net MVC.

Should I automatically publish each raster as a map service once user extracts his/her required raster?

  • Best route would be to set up a WMS or WCS service., not sure you would need to write anything in .NET should be out of the box functionality in ArcGIS server (or you could substitute GeoServer, Mapserver, Rasdaman). You can consume those services in Desktop clients/web clients. WMS out of the box, and WCS with a little JS coding. – nmtoken Sep 12 '17 at 7:09
  • Should I automatically publish each raster as a map service No publish all rasters as part of a single service. Let the WMS/WFS query handle which raster is provided to the user – nmtoken Sep 12 '17 at 7:16
  • @nmtoken you mean that I should publish a WMS service containing all the rasters? When I pass the wms to openlayers, all the rasters are displaying. – Ebola Sep 12 '17 at 7:22
  • A WCS would probably be better, but in principle it would be theoretically possible to show all rasters if you didn't apply some scale layering, or other restrictions – nmtoken Sep 12 '17 at 7:28
  • @nmtoken can I handle to show only one of the rasters? I dont want to load all the rasters on the basemap. Only one or two rasters. – Ebola Sep 12 '17 at 7:38

Best solution is add layer time-aware in map meaning that time must be enabled for the underlying raster dataset. Because the image service is time-aware you can use the TimeSlider to view changes in the image over time, filter image ect use api js Esri: http://server.arcgis.com/en/server/latest/publish-services/linux/serving-time-aware-layers.htm publish an image service https://developers.arcgis.com/javascript/3/jssamples/image_timeimageservice.html

  • Thank u @nicogis . do I have to use arcgis javascript api? or can I use openlayers? – Ebola Sep 13 '17 at 10:05
  • I advise arcgis api js because allows you to work with an image map service directly. You have also 3D. – nicogis Sep 15 '17 at 10:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.