It is a limitation of the shapefile format. The geometry is actually stored
in a separate file (and does not actually have an attribute name). Both
GeoTools and gvSIG are pretending the geometry comes from a "the_geom"
attribute in order to give you a consistent way of accessing feature values.

There are a few other restrictions on the shapefile format. You cannot have
a single shapefile with mixed geometry content (the contents all have to be
the same kind of geometry: all point, all line string or all polygons).

Jody Garnett


On Wed, Feb 26, 2014 at 5:47 AM, shiguera <[email protected]> wrote:

> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to