I looked at the shapefile- it is corrupted.  It has no features, and the schema 
from a polygon shapefile.

I don't know how it was corrupted, but I will have it replaced tomorrow 
morning, and I expect it should work.  Will report back tomorrow.

From: Bistrais, Bob [mailto:bob.bistr...@maine.gov]
Sent: Tuesday, April 08, 2014 3:07 PM
To: Andrea Aime
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Line shapefile publishes as polygon

I did try to change the style to line, but still can't see it.

I can share the original shapefile now, but it would make more sense to examine 
the one on the server.  I'll ask that server's administrator to send it to me 
and will forward it.

From: andrea.a...@gmail.com<mailto:andrea.a...@gmail.com> 
[mailto:andrea.a...@gmail.com] On Behalf Of Andrea Aime
Sent: Tuesday, April 08, 2014 3:02 PM
To: Bistrais, Bob
Cc: Russ Hore; 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Line shapefile publishes as polygon

On Tue, Apr 8, 2014 at 8:52 PM, Bistrais, Bob 
<bob.bistr...@maine.gov<mailto:bob.bistr...@maine.gov>> wrote:
I can load the original shapefile in QGIS and Arc, and it is a line dataset.

On the GeoServer installation, I have limited access to the server, and had the 
Administrator upload that shapefile for me.  I had previously published it as a 
line layer, only in the past couple days did we find it was trying to publish 
as polygon.  I am using this shapefile and GeoServer installation to train 
others on using GeoServer, so the others have been trying to publish their own 
layers in their own workspaces.  Some were able to publish it correctly as 
lines, only in the past few days did we find it thinking it was poly.

GeoServer reads the shape type from the shapefile header, I never heard of 
cases in which the type was misread (but there might be a first for everything, 
of course).
If you want to show it as lines just go to into the "publish" tab and select 
the "line" style instead of the polygon one.

If you can share the shapefile in question, maybe someone can have a second 
look at it

Cheers
Andrea

--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to