Select to view content in your preferred language

Quick Import problem - how to handle longitude-latitude (y,x) coordinates in GML

1449
3
10-06-2010 12:29 PM
StevePeaslee
Deactivated User
I'm trying to use Quick Import (9.3.1 SP1 ) on simple GML files where the coordinates in the bounding box and in the coordinate lists are all in longitude-latitude order. I don't have access to the server and can't change the configuration at that end.

Does anyone know if there is there a switch for the command-line or scripted version of QuickImport that will allow the software to import the data correctly? I'm starting to get a crick in my neck from looking at the screen sideways.

I don't have a license for the Data Interoperability extension if that makes any difference.


-Steve

example of GML:

      <gml:boundedBy>
       <gml:Envelope srsName="EPSG:4269">
        <gml:pos>-97.289708 41.911600</gml:pos>
        <gml:pos>-97.273151 41.926187</gml:pos>
       </gml:Envelope>
      </gml:boundedBy>
0 Kudos
3 Replies
BruceHarold
Esri Regular Contributor
Hi Steve

In 9.3.1 there is no switch, but there is in 10.  The format parameters have a pulldown for axis order - please see the attached image.

Regards
0 Kudos
StevePeaslee
Deactivated User
Bruce,

Thank you very much for the reply.

Even if this switch wasn't available in the 9.3.1 version of the Quick Import user interface, is it possible that it is still accessible through 9.3.1 commandline or through scripting? I notice that when I run the ArcTool that the command in the console output contains a lot of parameters that I don't see a reference to in the ArcTool menu.


-Steve
0 Kudos
Bong_HOSon
New Contributor
Hello ~~

Reference the ArcGIS Server 10 Help page...

<Concepts>
Controlling the axis order
Features returned in some geographic coordinate systems (for example, WGS 84) have an axis order of latitude, longitude (y,x) by default. This is in compliance with the WFS 1.1 specification. For example, a point may be returned from a getfeature request with its coordinates specified as follows:

<gml:Point>
<gml: pos>48.4922165520043 -122.630685732366</gml: pos>
</gml:Point>
Some WFS clients expect the coordinates to be returned with an axis order of longitude, latitude (x,y). To work with these clients, you can set the axis order for the service to be longitude, latitude. The following describes how to set the property:

Log on to the machine running ArcGIS server as an administrator.
Shut down ArcGIS Server.
Go to the location of the service configuration files. For example, if ArcGIS Server is installed in c:\arcgis, go to c:\arcgis\server\user\cfg.
Open the configuration file for your service (for example, myservice.cfg) in a text editor.
In the WFS section, add the following to the properties: <AxisOrderWFS11>longlat</AxisOrderWFS11>. For example:
<Extension>
<TypeName>WFSServer</TypeName>
<Enabled>true</Enabled>
<Properties>
<AxisOrderWFS11>longlat</AxisOrderWFS11>
<CustomGetCapabilities>false</CustomGetCapabilities>
<EnableTransactions>false</EnableTransactions>
<Name>wfs_WFSTest_ras</Name>
<OnlineResource>http://bobmk/arcgis/services/wfs/WFSTest_ras/MapServer/WFSServer</OnlineResource>
<AppSchemaURI>http://bobmk/arcgis/services/wfs/WFSTest_ras/MapServer/WFSServer</AppSchemaURI>
<AppSchemaPrefix>wfs_WFSTest_ras</AppSchemaPrefix>
</Properties>
<Info>
<WebEnabled>true</WebEnabled>
</Info>
</Extension>
Start ArcGIS Server.
Features with geographic coordinates requested from the service are now returned with a longitude, latitude axis order.

Note that the axis order property only applies to features with geographic coordinates. Features with projected coordinates are always returned with an x,y axis order.

<Site>
Controlling the axis order
0 Kudos