Re: [Geotools-gt2-users] Use of JTS Geometry srid and userData in GML to JTS mapping

2008-05-28 Thread Jody Garnett
Hi again; Can you give an example of what you mean by above? What is an example of a data format and how does a data format specify its CRS. Sure - a shapefile is a common data format that is made up of the following files: - file.shp - holds the geometry (we parse these into a JTS Geometry

[Geotools-gt2-users] Use of JTS Geometry srid and userData in GML to JTS mapping

2008-05-27 Thread Farrukh Najmi
Dear colleagues, Looking at geotools GML code its not clear to me how it uses the srid and userData fields of the com.vividsolutions.jts.geom.Geometry class. What are these fields set to when a JTS Geometry is stored after being mapped from a GML geomtery? What are these fields set to when a

Re: [Geotools-gt2-users] Use of JTS Geometry srid and userData in GML to JTS mapping

2008-05-27 Thread Jody Garnett
Farrukh Najmi wrote: Dear colleagues, Looking at geotools GML code its not clear to me how it uses the srid and userData fields of the com.vividsolutions.jts.geom.Geometry class. Which GML code did are you looking at specifically? - SAX parser? I think it sets the srsName to the userData

Re: [Geotools-gt2-users] Use of JTS Geometry srid and userData in GML to JTS mapping

2008-05-27 Thread Farrukh Najmi
Jody Garnett wrote: Farrukh Najmi wrote: Dear colleagues, Looking at geotools GML code its not clear to me how it uses the srid and userData fields of the com.vividsolutions.jts.geom.Geometry class. Which GML code did are you looking at specifically? - SAX parser? I think it sets the

Re: [Geotools-gt2-users] Use of JTS Geometry srid and userData in GML to JTS mapping

2008-05-27 Thread Jody Garnett
Farrukh Najmi wrote: I was looking at trunk/modules/library/main/src/main/java/org/geotools/gml/SubHandlerPolygon.java and other classes there. I think that is the SAX parser; it does GML2 as I understand it. In general I don't know what these parsers do for a JTS Geometry object;

Re: [Geotools-gt2-users] Use of JTS Geometry srid and userData in GML to JTS mapping

2008-05-27 Thread Farrukh Najmi
Jody Garnett wrote: Farrukh Najmi wrote: I was looking at trunk/modules/library/main/src/main/java/org/geotools/gml/SubHandlerPolygon.java and other classes there. I think that is the SAX parser; it does GML2 as I understand it. In general I don't know what these parsers do for a JTS