|
From: Ali T. <A.M...@sa...> - 2005-02-18 16:07:05
|
Dear all, I am trying to understand how GeoTools parses GML files. My aim is writing an application which parses a GML file and writes the features to PostGIS database. I have downloaded the latest edition (2.1.x). I am told that the new GML parser is using the class 'GMLDataStore'. I am also pointed out the example files on the web site: "http://svn.geotools.org/geotools/trunk/gt/module/main/test/org/geotools/xml/". My questions are: * I couldn't run these examples as there is no file containing the 'main' method. Is there any example that is up and running? How do these classes work? * Isn't there any API for the parsing classes (GMLDataStore as indicated)? * The file 'GMLParserTest.java' includes several methods such as 'testOneFeature(), testMoreFeatures(), etc.' Which class should call these methods? * None of these classes contain the 'GMLDataStore' class. So how is the parsing going on? Thanks for any help. Ali Murat Tanyer University of Salford |