[OpenLayers-Dev] How to display shapefile?

Kwong Hu Kiu kwonghu at hotmail.com
Tue Apr 14 10:33:15 EDT 2009







Which is the recommended format to convert shapefile to ?

I assume i can load the *.shp into ogr2ogr and it should generate a *.kml file for me if i choose KML format.
Is that right ?

Thanks

> Date: Tue, 14 Apr 2009 16:19:57 +0200
> From: rldhont at gmail.com
> To: kwonghu at hotmail.com
> CC: dev at openlayers.org
> Subject: Re: [OpenLayers-Dev] How to display shapefile?
> 
> You could use ogr2ogr form GDAL/OGR
> 
> Kwong Hu Kiu a écrit :
> >
> >
> > Thanks for the quick reply.
> >
> > How should i do that ? Do i have to use a program to regenerate the 
> > shapefile into those format ?
> >
> > Any link ?
> >
> > Cheers
> >
> > > Date: Tue, 14 Apr 2009 16:16:22 +0200
> > > From: rldhont at gmail.com
> > > To: kwonghu at hotmail.com
> > > CC: dev at openlayers.org
> > > Subject: Re: [OpenLayers-Dev] How to display shapefile?
> > >
> > > You have to change the format : GML, JSON, KML
> > >
> > > Because OpenLayers is a JavaScript library, it's limited by the
> > > navigator capabilities and a navigator isn't capable to read ESRI
> > > ShapeFile.
> > >
> > > Kwong Hu Kiu a écrit :
> > > >
> > > > Hi all,
> > > >
> > > > May i know how i can display shapefile using openlayers ?
> > > > Shapefile works with ESRI. How can i include it in openlayers ?
> > > >
> > > > Any code example around ?
> > > >
> > > > Cheers.
> > > >
> > > >
> > > >
> > > >
> > > > 
> > ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > Dev mailing list
> > > > Dev at openlayers.org
> > > > http://openlayers.org/mailman/listinfo/dev
> > > >
> > >
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20090414/cd15b5ef/attachment.html


More information about the Dev mailing list