This is a re-post, perhaps my title wasn't concise enough to grab attention. This is related to pulling WFS-base National Hydrography Dataset.
Is it true that ogr2ogr only understands the GML2? If so, any ideas on the difficulty of amending this situation? More information from the maintainer of the WFS service. If what they say is correct, ogr2ogr doesn't grok GML3? See below if interested: ############################################# ## Begin Correspondence with NHD WFS Contact # ############################################# For the framework data our server raises an exception if the output format is not GML3 because the framework schemas: http://frameworkwfs.usgs.gov/framework/schemas/gmlsf1/ are only defined for GML3. So, if you request GML2 output, the server raises an exception since it cannot validate GML2 input or output because the GML2 schemas do not exist. > I have made progress enough to load point layers, such as , however, > when trying to load some of the polygon layers, such as, , I get the > following error: > > OGR error. Missing outerBoundary Is property on Polygon. You may have trouble accessing the framework data (which is only available in GML3) with OGR because OGR can only handles GML2 (at least that is my understanding). The error you indicate kinda bears out my understanding ... <gml:outerBoundaryIs> is an element defined in GML2 but deprecated in GML3. The corresponding GML3 element is <gml:exterior> which is what our server generates when the requested output format is GML3. > > BTW - what is the status of this product? The CubeWerx WFS is part of CubeSERV which is a production product. Are you using ogr2ogr to try and convert the output to something else? If so, let me know which output format you are trying to convert the data to and I may be able to come up with another way to get that format. Or at least tweak our server to allow you to use ogr. ############################################# ## End Correspondence with NHD WFS Contact ## ############################################# Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality [EMAIL PROTECTED] 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burgholzer,Robert Sent: Friday, June 06, 2008 12:58 PM To: [email protected] Subject: [mapserver-users] troubleshooting WFS LINE output I am retrieving some WFS layers, and having a bit of trouble with a LINE layer (not to mention a bit more trouble with a POLYGON layer, but that will hold for now). The data set that I am working with has much promise if I can get it to work, it is the National Hydrography Database or NHD. The GML file is retrieved, it appears to be in coordinates that are within my extent, and the map loads just fine, except it does not show any LINE. I am able to load a point from this source, no worries, but the LINE has thus far eluded me. I will attach my line block from my mapfile, in case I have made a real rookie mistake here, but any insight into how to troubleshoot otherwise would be welcome (I have debugging turned on, and am receiving no errors related to the line). LAYER NAME nhd_wfs TYPE LINE #TYPE POINT STATUS ON DEBUG ON CONNECTIONTYPE WFS CONNECTION "http://frameworkwfs.usgs.gov/framework/wfs/wfs.cgi?OutputFormat=GML3L1& srsName=EPSG:4326" METADATA #"wfs_typename" "HydroElementWBMD" #"wfs_typename" "HydroElementPTMD" "wfs_typename" "HydroElementLIHI" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "240" END PROJECTION "init=epsg:4326" END CLASS NAME "None" STYLE #SYMBOL 'circle' #SIZE 7 COLOR 42 151 220 #BACKGROUNDCOLOR 42 151 220 #OUTLINECOLOR 42 151 220 END END END # Layer Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality [EMAIL PROTECTED] 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
