[Geoserver-users] Shape datastore and attribute name lenght

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Geoserver-users] Shape datastore and attribute name lenght

Giacomo Fiorentini
We need to configure arbitrary shapefile datastore, with field name
lenght greater then 10 character.
Trying to configure the shape file from the geoserver web admin console,
produces the following error:

HTTP ERROR: 500
Duplicate+AttributeTypes+DefaultAttributeType+%5Bname%3DTOTAL%5FNO%5FO+%2C+type%3Dclass+java%2Elang%2EInteger+%2C+nillable%3Dtrue%2C+min%3D1%2C+max%3D1%5D
-->

The attributes names are:
    TOTAL_NO_10
    TOTAL_NO_11
that if truncated to 10-string lenght, are the same.

How can be solved this limitation on shape datastore?

We are using:  Geoserver 1.3RC2  with GeoTools 1.2RC1

10x for any help.

                                                                         
                                                                       
Giacomo Fiorentini





g.fiorentini.vcf (309 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[Geoserver-users] Re: Shape datastore and attribute name lenght

Jody Garnett
I think that is a limitation of the shapefile format?

> We need to configure arbitrary shapefile datastore, with field name
> lenght greater then 10 character.
> Trying to configure the shape file from the geoserver web admin
> console, produces the following error:
>
> HTTP ERROR: 500
> Duplicate+AttributeTypes+DefaultAttributeType+%5Bname%3DTOTAL%5FNO%5FO+%2C+type%3Dclass+java%2Elang%2EInteger+%2C+nillable%3Dtrue%2C+min%3D1%2C+max%3D1%5D
>
> -->
>
> The attributes names are:
>    TOTAL_NO_10
>    TOTAL_NO_11
> that if truncated to 10-string lenght, are the same.
>
> How can be solved this limitation on shape datastore?
>
> We are using:  Geoserver 1.3RC2  with GeoTools 1.2RC1
>
> 10x for any help.
>
>                                                                        
>                                                                        
> Giacomo Fiorentini
>
>
>
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

[Geoserver-users] indexed shape file datastore

Giacomo Fiorentini
In reply to this post by Giacomo Fiorentini
After configured the indexed shape file datastore (removed the
gt2-shapefile.jar and added the indexed-shape.jar), we always obtain the
following error on the jetty console:
    java.lang.IncompatibleClassChangeError when trying to read the shapefile

What can be the problem ?

Versions currently in use are: geoserver 1.3 RC2 with geotools 2.1.RC1 +
JRE 1.4.2_08 + window platform

10x. for any help.

                                                                         
                                                         Giacomo



g.fiorentini.vcf (309 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Geoserver-users] indexed shape file datastore

Chris Holmes-2
Quoting Giacomo Fiorentini <[hidden email]>:

> After configured the indexed shape file datastore (removed the
> gt2-shapefile.jar and added the indexed-shape.jar), we always obtain
> the
> following error on the jetty console:
>     java.lang.IncompatibleClassChangeError when trying to read the
> shapefile
>
> What can be the problem ?
>
> Versions currently in use are: geoserver 1.3 RC2 with geotools
> 2.1.RC1 +
> JRE 1.4.2_08 + window platform
Not quite sure what the problem is, but if you upgrade to a newer
release candidate we started including the Indexed Shapefile datastore
in addition to the normal one, so with that you should have a much
easier time getting it to work.

best regards,

Chris


>
> 10x. for any help.
>
>
>                                                          Giacomo
>
>
>




----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Reply | Threaded
Open this post in threaded view
|

Re: indexed shape file datastore

Justin Deoliveira-3
In reply to this post by Giacomo Fiorentini
Hi Giacomo,

We added indexed shapefile support in 1.3 RC3. If you try a newer
version it should work.

Justin

Giacomo Fiorentini wrote:

> After configured the indexed shape file datastore (removed the
> gt2-shapefile.jar and added the indexed-shape.jar), we always obtain the
> following error on the jetty console:
>    java.lang.IncompatibleClassChangeError when trying to read the shapefile
>
> What can be the problem ?
>
> Versions currently in use are: geoserver 1.3 RC2 with geotools 2.1.RC1 +
> JRE 1.4.2_08 + window platform
>
> 10x. for any help.
>
>                                                                        
>                                                         Giacomo
>
>


--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
Reply | Threaded
Open this post in threaded view
|

[Geotools-gt2-users] Re: [Geotools-devel] Re: Shape datastore and attribute name lenght

James Macgill-2
In reply to this post by Jody Garnett
On 11/24/05, Jody Garnett <[hidden email]> wrote:
> I think that is a limitation of the shapefile format?
Indeed, it is a limitation of the dbase (dbf) format used by shapefiles.

A workaround is possible but it would take some work to implement.
Recent versions of ESRI(tm) software support a meta-data file
(.shp.xml yes, a double extention).  In additoin to crs information
this file can contain a mapping between the 10 character collumn names
and a more more extensive and descriptive name of unlimited(?) length.

James


>> >
> > How can be solved this limitation on shape datastore?
> >
> > We are using:  Geoserver 1.3RC2  with GeoTools 1.2RC1
> >


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
<a href="http://ads.osdn.com/?ad_idv37&alloc_id865&op=click">http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users