Hexagon Geospatial
MENU

ERDAS APOLLO Q&A

ERDAS APOLLO provides comprehensive data management and delivery which includes organizing geospatial and business data into a centralized library with cloud or on-premise distribution options.
Showing results for 
Search instead for 
Do you mean 

How to add SRS to existing legacy Apollo W*S service

by Technical Evangelist on ‎02-09-2017 10:59 AM (492 Views)

Unfortunately there is no GUI tool for this workflow, while Apollo essential admin console allow user to directly add EPSG using comma seperated list, but no such feature in Apollo data manager for legacy OGC service.

 

User need to manually edit the mapping.xml file for the web service @ <APOLLO>\config\erdas-apollo\storage\vector\<service name>\generatedMapping.xml. If the mapping file does not exist you may have to create one, and then reference it using the Edit Provider command in DM.


For example adding EPSG:26711 to default EPSG:4326

<iwfs:Info name="iwfs:wfst4326">
<iwfs:Operations>*</iwfs:Operations>
<iwfs:SRS overwrite="true">EPSG:4326</iwfs:SRS>
<iwfs:BoundingBox SRS="EPSG:4326" minx="-116.740988887907" miny="33.7397218963502" maxx="-116.507098750081" maxy="34.009959299049"/>
<iwfs:SRS>EPSG:26711</iwfs:SRS>
<iwfs:BoundingBox SRS="EPSG:26711" minx="516200" miny="372" maxx="554960" maxy="3769980"/>

 

 

 

 

Here is the GetCapabilities return from the service.

 

- <FeatureType xmlns:iwfs="http://www.erdas.com/wfs">
<Name>iwfs:wfst4326</Name> 
<Title>wfst4326</Title> 
<DefaultSRS>EPSG:4326</DefaultSRS> 
<OtherSRS>EPSG:26711</OtherSRS> 
- <ows:WGS84BoundingBox xmlns:ows="http://www.opengis.net/ows" xmlns="http://www.opengis.net/ows" dimensions="2">
<LowerCorner>-116.740988887907 33.7397218963502</LowerCorner> 
<UpperCorner>-116.507098750081 34.009959299049</UpperCorner> 
</ows:WGS84BoundingBox>

 

 

Comments
by GS_Fritz
‎03-26-2019 05:22 AM - edited ‎03-26-2019 05:23 AM

Haiyan,

 

thanks for this hint. This is more than helpful for one of my installations. I do have a short remark.

You are able to add addtional SRS to the existing tag. Just separate those using space. For example replace the line

 <iwfs:SRS overwrite="true">EPSG:5650</iwfs:SRS>

with

 <iwfs:SRS overwrite="true">EPSG:5650 EPSG:4326 EPSG:4647 EPSG:25833 EPSG:25832 EPSG:3857</iwfs:SRS>

There is also no need to compute and add the bounding boxes for the addtional SRS. The will be computed on the fly. The GetCapabilities respones of the given example looks like:

<Title>Fundstellen Schwerin</Title>
<CRS>EPSG:5650</CRS>
<CRS>EPSG:3857</CRS>
<CRS>EPSG:25832</CRS>
<CRS>EPSG:25833</CRS>
<CRS>EPSG:4647</CRS>
<CRS>EPSG:4326</CRS>
<CRS>CRS:84</CRS>
...
<EX_GeographicBoundingBox><westBoundLongitude>11.305220246539339</westBoundLongitude><eastBoundLongitude>11.504839864394366</eastBoundLongitude><southBoundLatitude>53.54623450343989</southBoundLatitude><northBoundLatitude>53.68020484689609</northBoundLatitude></EX_GeographicBoundingBox>
....
</EX_GeographicBoundingBox>
<BoundingBox CRS="EPSG:5650" minx="3.32559739776459E7" miny="5939350.59216526" maxx="3.32684826678458E7" maxy="5953652.02440799"/>
<BoundingBox CRS="EPSG:4647" minx="3.2652249653938692E7" miny="5935509.307482139" maxx="3.2665955989101294E7" maxy="5950856.452728454"/>
<BoundingBox CRS="EPSG:25833" minx="255232.53640111364" miny="5938721.027093846" maxx="269184.1900493837" maxy="5954284.497209002"/>
<BoundingBox CRS="EPSG:25832" minx="652249.6539386928" miny="5935509.307482139" maxx="665955.9891012934" maxy="5950856.452728454"/>
<BoundingBox CRS="EPSG:3857" minx="1258491.361150566" miny="7084682.661956154" maxx="1280712.9153625355" maxy="7109822.062997027"/>
<BoundingBox CRS="CRS:84" minx="11.305220246539339" miny="53.54623450343989" maxx="11.504839864394366" maxy="53.68020484689609"/>

Cheers

Fritz

by Moderator
on ‎03-26-2019 06:25 AM

Thanks @GS_Fritz for the tip Smiley Happy !

Contributors