[OpenLayers-Users] Confusion regarding shape file?
Stephen Woodbridge
woodbri at swoodbridge.com
Sun Nov 15 13:56:28 PST 2015
sukbir,
geoserver is an option, mapserver and tinyows is another option. You
will likely need to recreate your application using OpenLayers as gmaps
is a closed proprietary library. If you are computing routes in gmaps,
then you will need to look at pgrouting or some other routing solution.
There is no simple answer to this question without knowing in detail all
the typical transactions that are happening between your application and
gmaps and know things like where do you store your data, etc.
I would suggest loading the shapefile into postgresql along with any
additional data you create like your geofences. Then these can be
read/write/edited from things like geoserver or mapserver/tinyows.
gmaps has some ability to pull data from other sources, but it is pretty
limited and I'm pretty sure it does not support routing through other
data. You might be able to put the data in postgresql and create an ajax
handler to fetch limited amounts of data to put and work with in the
client.
Anyway this is just some ideas, other might have more ideas.
-Steve
On 11/15/2015 2:22 PM, sukbir singh wrote:
> Dear Steve,
> Yes currently we have written an application using
> pure gmap where we can draw, save, edit and view geo fence using polygon
> and polylines. Thereafter we can plot data and replay function all on
> the gmap.
>
> Now the issue is that I have a shapefile of particular country? How
> can I load that shapefile?
>
> My biggest challenge is how to port all the functionality done in google
> map into this shapefile?
>
> What I read so far is that I need to install a geoserver is that correct?
>
> Yes my problem is now to render the shapefile as a map and secondly all
> the functionality done via google map?
>
> I hope I am clearer now?
>
> > To: openlayers-users at lists.osgeo.org
> > From: woodbri at swoodbridge.com
> > Date: Sun, 15 Nov 2015 14:05:27 -0500
> > Subject: Re: [OpenLayers-Users] Confusion regarding shape file?
> >
> > On 11/15/2015 1:36 PM, sukbir singh wrote:
> > > Hi All,
> > > Currently I have my application run well on google map. My
> > > client now have a shape file for a specific country. He needs us to run
> > > the same functionality which we have in google map done on this
> > > shapefile. So in order to run a shape file must I install e.g.
> > > GeoServer. Then upon that I got to run open layers. How am I going to
> > > integrate google map into open layers? Am I moving on the right path?
> > > Thank you.
> >
> > I think you need to provide a little more information. From you
> > description, it sounds like you have write an application based on gmap
> > api. Now you have a shapefile,
> >
> > what do you want to do with that?
> > * edit the shapefile data?
> > * display it as a base map?
> > * do you need vectors from the shapefile to manipulate?
> > * or just to render the shapefile as a map?
> > * etc
> >
> > Without know what your app does and what you want to do with the
> > shapefile data, it is hard to make recommendations.
> >
> > -Steve
> > _______________________________________________
> > Users mailing list
> > Users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list