El 25/02/14 20:55, carlo cancellieri escribió:
Hi,
Try setting it explicitly
//set the default geometry
b.setDefaultGeometry( "mygeom" )
It doesn't goes for me. This is my code:
SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
builder.setName("Points");
builder.setCRS(crs);
builder.add("location", Point.class);
builder.add("gid", String.class);
builder.setDefaultGeometry("location");
// build the type
final SimpleFeatureType LOCATION = builder.buildFeatureType();
Cheers,
Carlo
Il 25/feb/2014 19:52 "shiguera" <shigu...@mercatorlab.com
<mailto:shigu...@mercatorlab.com>> ha scritto:
Hi all:
I'm working with SimpleFeatureTypeBuilder to build and save a
shapefile.
I follow the snippet in [1].
After created, I'm trying to see the layer with gvSIG. I can only
see it
if I name 'the_geom' to de geometry property. Is it correct?
Thanks in advance
Regards
Santiago Higuera
[1]
http://docs.geotools.org/stable/userguide/library/main/feature.html
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate
reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
<mailto:GeoTools-GT2-Users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users