fastest way to convert lon-lat to points

Tyler Mitchell tylermitchell at SHAW.CA
Thu Jul 27 07:42:33 PDT 2006


Hi Puneet,
If you install FWTools, I think you'll have access to python  
mapscript quite easily.  As well as the cs2cs coordinate convertor  
program.

Tyler

On 27-Jul-06, at 7:23 AM, P Kishor wrote:

> 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