I would think about projecting your corner point to a local UTM
projection and then using the local coordinate values to calculate UTM
values for each point.
You could then transform your data back to geographic.
David.
> _______________________________________________
> postgis-users mailing list
> postgi...@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
It may require a fair amount of pre-processign before the data can be
accurately (de)projected to LatLong.
Once the details of the drawing grid are known, there is a python
wrapper for Proj4 which could be used to (de)project the points on the
way into the database.
Eric
ILAN BENISTY wrote:
------------------------------------------------------------------------Hi,
I am dealing with a problem where I am importing an AutoCAD description of an airport (DXF) into PostGIS.
I have a Python script which will import each coordinate to a PostGIS geometry with SRID = -1 (since I do not have real world coordinates, but Cartesian coordinates from a point of origin).
I do, however, have a lat/long reference point, which represents the origin of my x/y CAD coordinates.
I would like to be able to store my CAD coordinates points as Long/Lat (SRID=4326).
Any suggestions?
Thanks,
Ilan
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
What country is the site in? What units are used for the drawings grid? Do you know the geographic datum?
It may require a fair amount of pre-processign before the data can be accurately (de)projected to LatLong.
Once the details of the drawing grid are known, there is a python wrapper for Proj4 which could be used to (de)project the points on the way into the database.
Eric
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
I have an example of this approach I can send if you like.
Regards,
I was thinking that, if you know the actual location of your points in a projected coordinate system, (de)projecting them to LatLong on the way into PostGIS could be done using the pyProj library which wraps Proj4 in a python wrapper. As such, as the points are read in, re-project them and write them in using st_geometryfromtext().
I have an example of this approach I can send if you like.
Regards,
Eric