fastest way to convert lon-lat to points
P Kishor
punkish at EIDESIS.ORG
Thu Jul 27 07:23:31 PDT 2006
Thanks for the guidance Roberto, however, this has to be done on
Windows. Afaik, there is no Perl/MapScript on Windows (or is there? I
can't figure out a definitive answer to this). Therefore, I can't
use mapscript;
sad.
On 7/26/06, Roberto Bianconi <roberto.bianconi at gmail.com> wrote:
> On 7/20/06, P Kishor <punkish at eidesis.org> wrote:
> > On 7/20/06, Steve Lime <Steve.Lime at dnr.state.mn.us> wrote:
> > > Puneet: Why is speed such a big deal or will you be doing this often?
> >
> > I will be doing this a few times a year (so, often, although not
> > necessarily often enough), but this portion is only a part of a longer
> > process. So, I have to optimize each step as much as I can for overall
> > better rate of return.
> >
> > >
> > > Anyway, if it were me I'd just write a quick MapScript script using
> > > perl. Create a new shapefileObj, a new XBase table, open the file and
> > > start looping. The loop itself should have like 3 lines of code. The
> > > whole script should be about 15...
> > >
>
>
> Hi,
> suppose your csv file is made of these records:
>
> 12.500,41.890,790380
> 12.530,41.890,790480
> ...
>
> In Perl you might go like this. Actually a bit more than 15 lines, but
> you can reduce it if you like :))
>
> use mapscript;
--
Puneet Kishor http://punkish.eidesis.org/
Nelson Inst. for Env. Studies, UW-Madison http://www.ies.wisc.edu/
Open Source Geospatial Foundation https://edu.osgeo.org/
More information about the MapServer-users
mailing list