I do not have much experience with other charsets. The DBF format has its on
indication of chartset in the header somewhere; perhaps you can check that
GeoTools correctly filling in the DBF header?
Other than that charset is supposed to do the trick; I wonder if it is only
applied the the field values and not the column names in the DBF?
Looking in Jira:
- https://jira.codehaus.org/browse/GEOT/component/10540
Yep the error is reported:
- https://jira.codehaus.org/browse/GEOT-1785 dbf header not support
internationalization
Complete with a patch; perhaps you can out the patch?
--
Jody Garnett
On Monday, 14 February 2011 at 4:12 PM, GMLチェックツール wrote:
> But... as you've seen the attribute names are in Japanese character..
> When I use Quickstart.java and ArcExplorer to check the attributes.. the
> field names are garbled.
> Is there any settings I need to set aside from params.put("charset",
> "UTF-8"); ?
>
> Eros
>
>
> (2011/02/14 14:04), Jody Garnett wrote:
> > Surface is a GML idea; the closest in shapefile is MultiPolygon. If
> > you look further down in that tutorial you will see instructions for
> > making a FeatureType using objects (rather than magic strings).
> >
> > When making a shapefile I would also often use "the_geom" rather than
> > "Location" in order to match the convention made when reading.
> >
> > Aside: I have often though about changing that convention to make the
> > geometry show up with the name of the feature type (which is the name
> > of the shapefile).
> >
> >
> > For more information:
> > - http://docs.codehaus.org/display/GEOTDOC/03+JTS+Topology+Suite
> >
> > --
> > Jody Garnett
> >
> > On Monday, 14 February 2011 at 2:33 PM, GMLチェックツール wrote:
> >
> > > Hi Jody,
> > >
> > > Please let me to add the following inquiries:
> > >
> > > I've successfully executed the Csv2Shp.java and created the shape file
> > > (Points).
> > > Then able to view using the ArcExplorer and Quickstart.java
> > > But I have some inquiries:
> > >
> > > In my case, it's gml:MultiSurface...gml:LinearRing
> > >
> > > 1) final SimpleFeatureType TYPE =
> > > DataUtilities.createType("Location",
> > > "location:Point:srid=4326," + // <- the geometry
> > > attribute: Point type
> > > "name:String," + // <- a String attribute
> > > "number:Integer" // a number attribute
> > > );
> > >
> > > 1.1) parameter "Location" -> anything can be passed?
> > > 1.2) "location:Point:srid=4326," <- don't know values for
> > > gml:MultiSurface,
> > > 1.3) "location:Point:srid=4326," <- any integer values to srid will
> > > be ok?
> > >
> > > 2) MultiLineString multiLineString =
> > > geometryFactory.createMultiLineString(LineString[] lineStrings);
> > > Is it correct for gml:MultiSurface?
> > >
> > > My apologies for so much inquiries.
> > >
> > > Thanks in advanced.
> > >
> > > Regards,
> > > Eros
> > >
> > >
> > > (2011/02/14 12:48), eros wrote:
> > > > 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
> > > > <http://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
> > > >
> > > >
> > > > <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?by-user=t>
> > > >
> > > >
> > > >
> > > > >
> > > > > To start a new topic under geotools-gt2-users, email
> > > > > [hidden email] </user/SendEmail.jtp?type=node&node=6022405&i=0>
> > > > > 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==
> > > >
> > > > <http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1936685&code=Z21sLmNoZWNrLnRvb2xAZ21haWwuY29tfDE5MzY2ODV8MTUwNDQzNjQyMQ==>
> > > >
> > > >
> > > > <http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1936685&code=Z21sLmNoZWNrLnRvb2xAZ21haWwuY29tfDE5MzY2ODV8MTUwNDQzNjQyMQ==&by-user=t
> > > >
> > > > <http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1936685&code=Z21sLmNoZWNrLnRvb2xAZ21haWwuY29tfDE5MzY2ODV8MTUwNDQzNjQyMQ==&by-user=t>>>.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ------------------------------------------------------------------------
> > > > View this message in context: Re: Steps on how to convert a
> > > > gml:MultiSurfaceCoverage (gml:MultiSurface->..gml:LinearRing) to ESRI
> > > > shape file?
> > > > <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
> > > > <http://osgeo-org.1803224.n2.nabble.com/geotools-gt2-users-f1936685.html>
> > > >
> > > >
> > > > at Nabble.com <http://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]
> > > > <mailto:[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]
> > > <mailto:[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