Hi Jody,
Yes, I am using GML3.2.1 and thanks for the url to follow which is the
latest tutorial for 2.7
I am sorry, I forgot to include some important points.
Presently, I successfully parse the gml file and convert it to shape
file (shp,shx) including its attributes (dbf).
Then, I able to view it using ArcExplorer9.3.1 (old ones) and
Quickstart.java but....
the shapes are like squares.
My initial findings are:
1) during gml parsing, I convert it to java class as Surface.
2) create a shape file as Surface. <- I think this is the cause why it
became square shapes.
Would like to consult:
1) MultiSurface can be treat as Curve when converting it to shape?
Thanks and regards,
Eros
(2011/02/14 12:12), Jody Garnett-2 [via OSGeo.org] wrote:
> 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
>> [hidden email] </user/SendEmail.jtp?type=node&node=6022346&i=0>
>> 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
> [hidden email] </user/SendEmail.jtp?type=node&node=6022346&i=1>
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://osgeo-org.1803224.n2.nabble.com/Steps-on-how-to-convert-a-gml-MultiSurfaceCoverage-gml-MultiSurface-gml-LinearRing-to-ESRI-shape-fil-tp6022166p6022346.html
>
>
> To start a new topic under geotools-gt2-users, email
> [email protected]
> To unsubscribe from geotools-gt2-users, click here
> <http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1936685&code=Z21sLmNoZWNrLnRvb2xAZ21haWwuY29tfDE5MzY2ODV8MTUwNDQzNjQyMQ==>.
>
>
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Steps-on-how-to-convert-a-gml-MultiSurfaceCoverage-gml-MultiSurface-gml-LinearRing-to-ESRI-shape-fil-tp6022166p6022405.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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