Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I stored data (road network: line features) on OpenGeo Geoserver compilation and when I tried to display these in openlayers or GeoExt, they are shown as point features.

share|improve this question
did you use a point style instead of a line style? – iant Aug 8 '13 at 13:25
up vote 2 down vote accepted

First things frst, double check that the data is actually lines and hasn't been changed into points without you noticing.

Secondly, are you using WMS? If so then, as @iant mentioned, the GeoServer style is probably set to a point style, rather than a line style.

In your GeoServer admin pages, go to the layers page and open the layer that you are having trouble with. There should be two tabs, Data and Publishing. Go to Publishing and scroll down to Default style and make sure that there is an appropriate style set that can handle lines. I think GeoServer comes with some default line styles. It should give you a legend once you've selected a style showing what styles that SLD has. Change it to something more appropriate then open it up in the Layer Preview and see what you get. If you're still having trouble you'll need to give us some more information!

share|improve this answer
Thank you very much for your help. It is working. – Geo_Diesher Aug 9 '13 at 6:36
Excellent! If this is your accepted solution please remember to accept the answer by clicking the little tick underneath the up/down votes on the left hand side of the question – Rob Quincey Aug 9 '13 at 8:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.