On Thu, Dec 18, 2008 at 12:13:05PM -0500, Heidt, Christopher M. wrote:
> I have an app that also pulls from an oracle spatial table.
> I found that using the toWKT instead of toGML works a lot better for my
> purposes.
> It was quicker, and the ol wkt parser handled it with no trouble.
> Of course if you must have gml output for other purposes then this is of
> little use to you.
> You could select both types of output, but that gets a bit redundant.

Yes, if you're going to *only* be parsing Geometries, I would recommend
WKT (personally): That is the one format we have which is designed
specifically for parsing geometries, rather than features, as far as I
know.  

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Christopher Schmidt
> Sent: Thursday, December 18, 2008 11:47 AM
> To: Sparks, Witt
> Cc: [email protected]
> Subject: Re: [OpenLayers-Users] Oracle Spatial and GML
> 
> On Thu, Dec 18, 2008 at 09:31:20AM -0700, Sparks, Witt wrote:
> > Hello,
> > 
> >  
> > 
> > I'm trying to select GML from an oracle spatial table and use it to 
> > create an OpenLayers.Feature.Vector object.
> > Oracle is giving me the following GML (for a point layer):
>  
> This is a single Geometry; OpenLayers, generally speaking, parses
> features or feature collections. I believe the GML parser will only work
> on FeatureCollections by default. Can you produce a featureCollection
> including this point? 
> 
> > <gml:Point srsName="SDO:8307" xmlns:gml="http://www.opengis.net/gml";>
> > 
> > <gml:coordinates decimal="." cs="," ts=" ">-94.653001,41.497753 
> > </gml:coordinates>
> > 
> > </gml:Point>
> 
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users

-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to