[Proj] How to change Layer's Native Projection
Frank Warmerdam
warmerdam at pobox.com
Wed Aug 10 09:53:22 EST 2011
On 11-08-10 07:43 AM, Mustafa646 wrote:
> I have a Layer (polygon shapefile) with native projection EPSG:3008. I want
> to change its native projection from EPSG:3008 to EPSG:4326. How i do this ?
>
> I don't want to change it using third party tool like ogr2ogr. I want to
> change it using Proj4 js library. How i do this ?
Mustafa,
PROJ.4 does not include any support for accessing feature formats like
shapefiles. You could convert a stream of text points from one coordinate
system to the other like:
cs2cs +init=epsg:3008 +to +init=epsg:4326 < 3008.txt > 4326.txt
I shall avoid asking why you wish to avoid ogr2ogr despite my curiosity.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Proj
mailing list