Question

Read a webmap service that contain a raster layer

  • 20 September 2018
  • 11 replies
  • 30 views

Badge

Hi ,

Does anyone know how could I read a web map service that contains a raster layers?

Thanks,

Rawan


11 replies

Userlevel 4

If it's a WMS service, then you can simply use the regular WMS reader.

WMS services always returns a raster regardless of the source data type, so there should be no difference from the client side.

Badge

Hi @david_r ,

Thanks for replying.

When I used the WMS reader, I got a pixelated raster and I need it to be exact to the map service. How could I download the raster to be fine with all resolutions?

And I have this layer as a map service not WMS layer, Could I do anything to download the raster from regular map service to have a good resolution?

Thanks,

Rawan

Userlevel 4

Hi Rawan

It's difficult to say without knowing more about the server and how it's configured. Also, I'm not quite sure I understand the distinction between WMS and "map service" (WMS = web map service) in this context.

If the WMS reader returns a raster, I'm guessing it's indeed a WMS, otherwise you'd most probably get a server error.

The raster that's returned by the WMS reader will depend heavily on how the server has been configured, and in particular the source raster resolution. For example, if the server has a source orthophoto with 50m/pixel resolution and you request an area that's 200 x 200 meters across, the returning raster would only contain 4 x 4 pixels. Of course this is an exaggerated example, but you get the idea.

In short, you may want to contact the person responsible for the server (or see if there's any detailed documentation) that can help you further.

Also, if this is a public web service, feel free to post the URL here so that we can experiment with it.

Badge

Thanks for replying @david_r

I’m trying to download a public map service and they provide it in two format

1: ArcGIS Server map service : http://services.ga.gov.au/site_9/rest/services/NEXIS_Residential_Population_Density/MapServer

2. WMS Map service: http://services.ga.gov.au/site_9/services/NEXIS_Residential_Population_Density/MapServer/WMSServer?request=GetCapabilities&service;=WMS

And when I tried to use the WMS reader to download the raster I got it pixelated and not exact the map service (I need it to be clear when I zoom in and out), and I don’t want it to be in ECW format because I will publish this raster to my ArcGIS Server and the ECW format not supported.

If you can help me in this I will be so glad.

Cheers,

Rawan

Userlevel 4

When you say "I need it to be clear when I zoom in and out", do you perhaps refer to looking at the raster in the FME Inspector? If so, be aware that FME and e.g. ArcMap behaves fundamentally different when accessing a WMS or an ArcGIS Map Service.

When you zoom in and out in ArcMap (or QGIS, etc), it will actually request a new raster from the server each time you zoom or pan. This makes it possible for the server to tailor the resulting raster to the exact dimension and zoom level of the client. So if the server has many rasters in different resolutions (or rasters with pyramids) it will be able to base the result on the raster that is the best fit for each request, depending on the zoom level etc.

On the other hand, FME will only make the request once and the send the resulting raster to the Inspector. When you zoom in and out inside the FME Inspector, you only zoom in and out of the exact same raster, there are no new requests made to the server. If you need different rasters for different zoom levels in FME, you'll have to author the workspace so that it specifically makes a separate request for each zoom level that you need.

Does this make sense? Let me know if I've misunderstood.

Badge
@david_r I mean when I have the raster from fme and open it in arcmap I need it to be clear when I zoom in/out

 

and I need to use FME only to download this map service

 

How could I edit the FME workbench to get the differnet layer scales from the map service?

 

Userlevel 4

If you only need to publish this service to your own ArcGIS Server, wouldn't the easiest solution be to create an mxd that references the existing service and publish it on your own server?

If that isn't an option you'll need create lots and lots of small polygon tiles (Tiler) and send each of them to e.g. the FeatureReader. It's going to be a bit of work to puzzle everything together so that your workspace settings are optimized for the server configuration (zoom levels, resolutions, etc.)

If all else fails, perhaps it would be an idea to ask the map service provider if the data also exists as a feature layer (raster), or perhaps even as a file download that you can access.

Badge

If you only need to publish this service to your own ArcGIS Server, wouldn't the easiest solution be to create an mxd that references the existing service and publish it on your own server?

If that isn't an option you'll need create lots and lots of small polygon tiles (Tiler) and send each of them to e.g. the FeatureReader. It's going to be a bit of work to puzzle everything together so that your workspace settings are optimized for the server configuration (zoom levels, resolutions, etc.)

If all else fails, perhaps it would be an idea to ask the map service provider if the data also exists as a feature layer (raster), or perhaps even as a file download that you can access.

Hi @david_rthanks for explanation and suggetion you mentioned above

 

first of all I couldnt refer my mxd to this map service then publish it because I couldn’t connecto to thier GIS server

 

the second thing they provide the feature service for the layer as I mentioned in my previous comment, what I can do to download it?

 

and I never build a work bench to do this before so If you can tell me which tools should I use to have it at different zoom level I will be sol glad.

 

If you have any other Ideas please let me know.

 

 

Thanks,

 

Rawan

 

Userlevel 4
Hi @david_rthanks for explanation and suggetion you mentioned above

 

first of all I couldnt refer my mxd to this map service then publish it because I couldn’t connecto to thier GIS server

 

the second thing they provide the feature service for the layer as I mentioned in my previous comment, what I can do to download it?

 

and I never build a work bench to do this before so If you can tell me which tools should I use to have it at different zoom level I will be sol glad.

 

If you have any other Ideas please let me know.

 

 

Thanks,

 

Rawan

 

I did a couple of tests using FME 2018.1 and it seems that FME isn't able to read the ArcGIS Map Service because of an unsupported layer type. Also, I was not able to read the WMS interface because of some unspecified error message in FME (not sure if the error is in FME or on the server).

 

I suggest that you contact Safe support about this one, linking to this thread.
Badge
I did a couple of tests using FME 2018.1 and it seems that FME isn't able to read the ArcGIS Map Service because of an unsupported layer type. Also, I was not able to read the WMS interface because of some unspecified error message in FME (not sure if the error is in FME or on the server).

 

I suggest that you contact Safe support about this one, linking to this thread.
Thank you !

 

Do you mean by contact safe support use chat with us button?

 

Cheers,

 

Rawan

 

 

Userlevel 4
Thank you !

 

Do you mean by contact safe support use chat with us button?

 

Cheers,

 

Rawan

 

 

Either that, or by using the contact form: https://www.safe.com/support/report-a-problem/

Reply