Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
1  
did you use a point style instead of a line style? –  iant Aug 8 '13 at 13:25
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.