If the feature type is MultiPolygon, then it doesn’t seem like the shapefile contains just lines.
Jerome
From: Russ Hore [mailto:russ@anonymised.com90…]
Sent: Tuesday, April 08, 2014 2:44 PM
To: Bistrais, Bob
Cc: jawendell@anonymised.com; geoserver-users@anonymised.comrge.net
Subject: Re: [Geoserver-users] Line shapefile publishes as polygon
Can you load the shp file into QGIS for example?
Russ
On 8 Apr 2014, at 19:38, “Bistrais, Bob” <Bob.Bistrais@anonymised.com> wrote:
I cannot preview it in Layer Preview- neither with OpenLayers nor any other client.
I know for a fact that the input shapefile is line, not poly, unless something or somebody built polys out of it (highly unlikely). For the record, the Edit Layers shows feature type as MultiPolygon.
From: Jerome A. Wendell [mailto:jawendell@anonymised.com]
Sent: Tuesday, April 08, 2014 2:32 PM
To: Bistrais, Bob; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] Line shapefile publishes as polygon
Bob,
Can you preview the layer in “Layer Preview”? Are you sure the shapefile contains line features and not polygons?
Jerome Wendell
From: Bistrais, Bob [mailto:Bob.Bistrais@anonymised.com]
Sent: Tuesday, April 08, 2014 2:18 PM
To: jawendell@anonymised.com; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] Line shapefile publishes as polygon
I selected EPSG:4326 for projection, and went with default styling during publishing.
From: Jerome A. Wendell [mailto:jawendell@anonymised.com]
Sent: Tuesday, April 08, 2014 2:06 PM
To: Bistrais, Bob; geoserver-users@anonymised.comrge.net
Subject: RE: [Geoserver-users] Line shapefile publishes as polygon
Bob,
Do you define the projection and the styling for the layer in the web administration interface when you published the layer?
Jerome Wendell
From: Bistrais, Bob [mailto:Bob.Bistrais@anonymised.com]
Sent: Tuesday, April 08, 2014 12:29 PM
To: geoserver-users@anonymised.comforge.net
Subject: [Geoserver-users] Line shapefile publishes as polygon
I have a shapefile that is line features which I am trying to publish in GeoServer (2.4). When I publish it, two strange things occur-
I get the message that it cannot determine the projection, even though there is a .prj file for it. That’s no problem since I can select that manually.
The real problem is that GeoServer publishes the shapefile as polygon features. In addition, I cannot see it on screen or style it, but it is still listed as a valid layer.
How do I correct this?
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@anonymised.com.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users