2

I have a GeoServer which contains a shapefile with some roads on it. Is it possible to programmatically query the GeoServer and extract a specific road from it and display it in a layer? I'm using OpenLayers library locally.

The reason I want to do this is because I want my line to be snapped on to the actual roads on my basemap (Bing maps).

1

1 Answer 1

1

Simply parse your shp file into geoJSON and parse it to a vectorlayer
Look here: https://github.com/wavded/js-shapefile-to-geojson

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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