[Geoserver-users] Rendering question

I’m having trouble getting data from the Massachusetts state GIS service (http://massgis.org) to work with geoserver. I’ve attached an image of how the outline is rendered - the image should be cleanly filled in, but around the more complicated shapes it’s only drawn around the edges and sometimes overlapping the line. Is there a reason why the data would do this? Is it a configuration issue or a bug?

The shape file causing this is available here: http://www.mass.gov/mgis/outline.htm (the 100k file, not the 25k)

<<ma.png>>
-Dan

ma.png

It could be that the shapefile outlinp1.shp has a problem, although I don’t see it in ArcMap.
I can try to load that shapefile into GeoServer as well and see what happens.

I assume you’re using the shapefile to learn GeoServer, but I should point out that if you
want to consume any of the MassGIS datalayers you can from our GeoServer.
Documentation is here: http://lyceum.massgis.state.ma.us
The WMS is giswebservices.massgis.state.ma.us/geoserver/wms.

Note you mention “massgis.org” which is not our site - we are www.mass.gov/mgis

Aleda Freeman
MassGIS
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://lyceum.massgis.state.ma.us - Webservices Wiki
MassGIS is the Commonwealth’s Office of Geographic and Environmental Information, located in the Executive Office of Energy and Environmental Affairs

I tried the 100k file (outlin1p.shp) and in GeoServer 1.6.0 on Windows, using a solid color fill I was not able to reproduce the problem of an incomplete fill.
It seems that shapefile (if that’s the same one you’re using) is OK.


From: geoserver-users-bounces@lists.sourceforge.net [mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Monego, Daniel
Sent: Wednesday, November 05, 2008 1:49 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Rendering question

I’m having trouble getting data from the Massachusetts state GIS service (http://massgis.org) to work with geoserver. I’ve attached an image of how the outline is rendered - the image should be cleanly filled in, but around the more complicated shapes it’s only drawn around the edges and sometimes overlapping the line. Is there a reason why the data would do this? Is it a configuration issue or a bug?

The shape file causing this is available here: http://www.mass.gov/mgis/outline.htm (the 100k file, not the 25k)

<<ma.png>>
-Dan

It could be that the shapefile outlinp1.shp has a problem, although I don't
see it in ArcMap.
I can try to load that shapefile into GeoServer as well and see what
happens.

Well, I just tried the 100k file (outlin1p.shp) and in GeoServer 1.6.0 on
Windows XP, using a solid color fill I was not able to reproduce the problem
of an incomplete fill. It seems that shapefile (if that's the same one
you're using) is OK.

I assume you're using the shapefile to learn about GeoServer, but I should
point out that if you want to consume any of the MassGIS datalayers you can
from our GeoServer. Documentation is here:
http://lyceum.massgis.state.ma.us

Note: you also mention a "massgis.org" which is not our site - our official
home is: http://www.mass.gov/mgis

Aleda Freeman
MassGIS
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://lyceum.massgis.state.ma.us - Webservices Wiki
MassGIS is the Commonwealth's Office of Geographic and Environmental
Information, located in the Executive Office of Energy and Environmental
Affairs

--
View this message in context: http://www.nabble.com/Rendering-question-tp20348113p20348580.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Monego, Daniel ha scritto:

I'm having trouble getting data from the Massachusetts state GIS service (_http://massgis.org_) to work with geoserver. I've attached an image of how the outline is rendered - the image should be cleanly filled in, but around the more complicated shapes it's only drawn around the edges and sometimes overlapping the line. Is there a reason why the data would do this? Is it a configuration issue or a bug?

The shape file causing this is available here: _http://www.mass.gov/mgis/outline.htm_ (the 100k file, not the 25k)

That usually happens when you try to fill a polyline as a polygon
(and the data is not really closed).

I've downloaded the data. If you try to render outlinp1 it renders
fine, if I try the same with outlina1, I get the same result as you.

This most probably means the arcs making out the linear outline
are not connected in a single outline... yeah, just checked doing
a WFS request, there are many features there, one has only a portion
of the global outline (if you want to try, use a request like
http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.0.0&typeName=topp:outlina1)

When GeoServer tries to render that, each
portion gets closed by connecting the start and end point of it,
generating that weird map you got.

Use the polygonal dataset and you'll be fine.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.