I am trying to use GeoTools to parse output from a WPS call to a 
FeatureCollection object. The GML that I'm trying to parse is:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs";
  
xmlns:sde_vdot_edge_rte_mileposts_lrs="http://www.openroadsconsulting.com/vagis";
  xmlns:gml="http://www.opengis.net/gml";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.openroadsconsulting.com/vagis 
http://localhost:8082/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=vagis:sde_vdot_edge_rte_mileposts_lrs
 
http://www.opengis.net/wfs 
http://geoserver.itc.nl:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd";>
  <gml:boundedBy>
    <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
      <gml:coordinates xmlns:gml="http://www.opengis.net/gml";
        decimal="." cs="," ts=" ">
        -76.2482,36.7773 -76.2482,36.7773
      </gml:coordinates>
    </gml:Box>
  </gml:boundedBy>
  <gml:featureMember>
    <sde_vdot_edge_rte_mileposts_lrs:sde_vdot_edge_rte_mileposts_lrs
      fid="sde_vdot_edge_rte_mileposts_lrs.22404">
      <sde_vdot_edge_rte_mileposts_lrs:rte_common_nm>
        I-64W
      </sde_vdot_edge_rte_mileposts_lrs:rte_common_nm>
      <sde_vdot_edge_rte_mileposts_lrs:transport_edge_from_msr>
        290.606
      </sde_vdot_edge_rte_mileposts_lrs:transport_edge_from_msr>
      <sde_vdot_edge_rte_mileposts_lrs:nearest_distance>
        0.02548857775763584
      </sde_vdot_edge_rte_mileposts_lrs:nearest_distance>
      <sde_vdot_edge_rte_mileposts_lrs:nearest_bearing>
        18.943074546102707
      </sde_vdot_edge_rte_mileposts_lrs:nearest_bearing>
      <sde_vdot_edge_rte_mileposts_lrs:the_geom>
        <gml:Point
          srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
          <gml:coordinates xmlns:gml="http://www.opengis.net/gml";
            decimal="." cs="," ts=" ">
            -76.2482,36.7773
          </gml:coordinates>
        </gml:Point>
      </sde_vdot_edge_rte_mileposts_lrs:the_geom>
    </sde_vdot_edge_rte_mileposts_lrs:sde_vdot_edge_rte_mileposts_lrs>
  </gml:featureMember>
</wfs:FeatureCollection>

The error I'm getting is:

Jun 26, 2008 11:56:54 AM org.geotools.xml.impl.ParserHandler startElement
WARNING: Error parsing: 
http://localhost:8082/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=vagis:sde_vdot_edge_rte_mileposts_lrs

Any ideas on how to handle this? Thanks, David

-- 

David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: [EMAIL PROTECTED]
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579




 




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to