Have you tried the user guide page on parsing GML? That will give you a feature
collection; from there you can follow the csv 2 shapefile tutorial in order to
make a shapefile.
Links:
- http://docs.codehaus.org/display/GEOTDOC/13+XML
- http://docs.geotools.org/latest/tutorials/feature/csv2shp.html
You can adapt the code to from:
GML encode = new GML(Version.GML2);
To:
GML encode = new GML(Version.GML3);
--
Jody Garnett
On Monday, 14 February 2011 at 11:44 AM, GMLチェックツール wrote:
> hi,
>
> I am trying to figure out on how to convert a gml which contains
> gml:MultiSurface to ESRI compatible shape file.
> Please guide me on the right directions.
>
> here's the sample gml file:
> <nslc:LfClassCoverage gml:id="mesh_1">
> <gml:domainSet>
> <gml:MultiSurface gml:id="sf_1" srsName="JGD2000 / (B, L)">
> <gml:surfaceMember>
> <gml:Polygon gml:id="pol_1">
> <gml:exterior>
> <gml:LinearRing>
> <gml:posList srsDimension="2">
> 30.1 130.2
> 30.2 130.2
> 30.2 130.1
> 30.1 130.1
> 30.1 130.2
> </gml:posList>
> </gml:LinearRing>
> </gml:exterior>
> </gml:Polygon>
> </gml:surfaceMember>
> <gml:surfaceMember>
> <gml:Polygon gml:id="pol_2">
> <gml:exterior>
> <gml:LinearRing>
> <gml:posList srsDimension="2"></gml:posList>
> </gml:LinearRing>
> </gml:exterior>
> </gml:Polygon>
> </gml:surfaceMember>
> <gml:surfaceMember>
> <gml:Polygon gml:id="pol_3">
> <gml:exterior>
> <gml:LinearRing>
> <gml:posList srsDimension="2">31.1 131.2 31.2 131.2 31.2 131.1 31.1
> 131.1 31.1 131.2</gml:posList>
> </gml:LinearRing>
> </gml:exterior>
> </gml:Polygon>
> </gml:surfaceMember>
> <gml:surfaceMember>
> <gml:Polygon gml:id="pol_4">
> <gml:exterior>
> <gml:LinearRing>
> <gml:posList srsDimension="2"></gml:posList>
> </gml:LinearRing>
> </gml:exterior>
> </gml:Polygon>
> </gml:surfaceMember>
> </gml:MultiSurface>
> </gml:domainSet>
> <gml:rangeSet>
> <gml:DataBlock>
> <gml:rangeParameters xlink:href="#LfClassCoverageRecordType"/>
> <gml:tupleList>
> pol_1,data1,1,10,06,11006
> pol_2,data2,1,07,01,10701
> pol_3,data3,1,05,03,10503
> pol_4,data4,1,01,01,10101
> </gml:tupleList>
> </gml:DataBlock>
> </gml:rangeSet>
> <nslc:mapName>map1</nslc:mapName>
> <nslc:periodOfSurvey gml:id="tp1">
> <gml:beginPosition>1990-01-01</gml:beginPosition>
> <gml:endPosition>2005-12-31</gml:endPosition>
> </nslc:periodOfSurvey>
> </nslc:LfClassCoverage>
> <nslc:LfClassCoverage gml:id="mesh_2">
> ..
> </nslc:LfClassCoverage>
>
>
> Thanks and regards,
> Eros
> Japan
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users