> b) turn the XML into something a geotools datastore can interpret, for
>     example by applying an XSLT transform on it to turn it into standard
>     GML.
>
> Btw, both solutions could be applied to the SVG file as well. There
> are talks about GML to SVG transforms on the web, but it's not trivial
> stuff, and you would need the opposite transform anyway (something hard to
> find since usually you go from content to representation, not the
> opposite).
>

Actually I think Mr Sujoy could use b) as a only once process, since he said 
he's migrating from svg to geotools, so it makes sence to convert all his 
data once and to work on a datastore from there.

Sujoy, I think it could be easier for you to write a Java program that 
performs the conversion, instead of an XSLT (at least it would be for me :)

Say, you can write a program that loads your SVG data into a DOM and then 
write to a properties file. I say to write a java program because I wouldn't 
know how to convert an SVG path to GML coordinates using xslt, but may be its 
possible.
And yes, as a starting point you can write to a single .properties file if you 
don't want to deal with the complexities of Gml. We have a properties file 
DataStore the demo/properties. The format used to store the geometries is 
simply WKT, that you get obtain from the JTS Geometry once you managed to 
parse the SVG path or other element into a JTS Polygon, LineString, etc.

So, once you have the features in properties, it will be very easy to export 
them to a more robust storage like a postgis database or even shapefiles.

my 2c.

Gabriel

> Cheers
> Andrea Aime
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

-- 
Gabriel Roldán ([EMAIL PROTECTED])
Axios Engineering (http://www.axios.es)
Tel. +34 944 41 63 84
Fax. +34 944 41 64 90

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to