Re: [postgis-users] Transform from NAD27 (SRID 4267) to WGS84 (SRID 4326)

2012-04-05 Thread Sandro Santilli
On Thu, Apr 05, 2012 at 09:25:40AM +1000, Evan Martin wrote: > >70 west, 10 north is in venezuela which is outside the bounds of > >available NAD27 to NAD83 conversion files. Try (-120 40). > > Thanks, Frank. Yes, (-120 40) works. Just to confirm, will PostGIS > always return the input coordinate

Re: [postgis-users] Transform from NAD27 (SRID 4267) to WGS84 (SRID 4326)

2012-04-04 Thread Evan Martin
>70 west, 10 north is in venezuela which is outside the bounds of >available NAD27 to NAD83 conversion files. Try (-120 40). Thanks, Frank. Yes, (-120 40) works. Just to confirm, will PostGIS always return the input coordinates now when they're outside the bounds of the input datum, rather tha

Re: [postgis-users] Transform from NAD27 (SRID 4267) to WGS84 (SRID 4326)

2012-04-02 Thread Frank Warmerdam
On Mon, Apr 2, 2012 at 7:53 PM, Evan Martin wrote: > When trying to transform from NAD27 (SRID 4267) to WGS84 (SRID 4326) some > points used to fail as of 2.0.0 beta 3 (bug 318). I've just tried 2.0.0 RC 2 > and they now return the input value unchanged, eg. > > SELECT ST_AsText(ST_Transform(ST_Ge

Re: [postgis-users] Transform

2012-02-28 Thread Bborie Park
ctions.net] On Behalf Of Stephen Crawford Sent: Tuesday, February 28, 2012 11:51 AM To: postgis-users@postgis.refractions.net Subject: Re: [postgis-users] Transform ScaleX and ScaleY are identical for each tile in the original table, and are all different in the transformed table, which I guess s

Re: [postgis-users] Transform

2012-02-28 Thread Pierre Racine
> boun...@postgis.refractions.net] On Behalf Of Stephen Crawford > Sent: Tuesday, February 28, 2012 11:51 AM > To: postgis-users@postgis.refractions.net > Subject: Re: [postgis-users] Transform > > ScaleX and ScaleY are identical for each tile in the original table, and are > all > diff

Re: [postgis-users] Transform

2012-02-28 Thread Stephen Crawford
ScaleX and ScaleY are identical for each tile in the original table, and are all different in the transformed table, which I guess should make sense on a transform? I actually now think my output problem is in GDAL. I have been outputting AAIGrids which I then use in geoserver. The values ar

Re: [postgis-users] Transform

2012-02-28 Thread Pierre Racine
> OK, it seems ST_Transform is working for me, but I'm a bit confused about the > "raster_columns" table. The original (pre-transform) raster table is a set of > 187 > tiles. In raster_columns 'scale_x', 'scale_y', 'blocksize_x', 'blocksize_y' > are all > defined, and 'same_alignment'=t. > Then

Re: [postgis-users] Transform

2012-02-28 Thread Stephen Crawford
rre Racine wrote: So Steve could you fix this problem? Any update? Pierre -Original Message- From: postgis-users-boun...@postgis.refractions.net [mailto:postgis-users- boun...@postgis.refractions.net] On Behalf Of Stephen Crawford Sent: Tuesday, February 21, 2012 3:11 PM To: postgis-users@postgis.r

Re: [postgis-users] Transform

2012-02-27 Thread Stephen Crawford
users-boun...@postgis.refractions.net [mailto:postgis-users- boun...@postgis.refractions.net] On Behalf Of Stephen Crawford Sent: Tuesday, February 21, 2012 3:11 PM To: postgis-users@postgis.refractions.net Subject: Re: [postgis-users] Transform Spoke too soon. Now the new table is in the correct projection, but

Re: [postgis-users] Transform

2012-02-27 Thread Pierre Racine
: postgis-users@postgis.refractions.net > Subject: Re: [postgis-users] Transform > > Spoke too soon. Now the new table is in the correct projection, but almost > all > of the data have been changed to "0" (should be a % such as > 93.25 etc). The original raster is tiled; do

Re: [postgis-users] Transform

2012-02-21 Thread Stephen Crawford
Spoke too soon. Now the new table is in the correct projection, but almost all of the data have been changed to "0" (should be a % such as 93.25 etc). The original raster is tiled; do I need to do a Union first, or something else I'm missing? Thanks, Steve On 2/21/2012 2:20 PM, Bborie Park

Re: [postgis-users] Transform

2012-02-21 Thread Stephen Crawford
I saw the note in the docs just as I received your reply. That did the trick. Thanks. On 2/21/2012 2:20 PM, Bborie Park wrote: Steve, Are you running Windows? If so, I believe there is a known issue with GDAL not finding the proj.4 DLL. You'll need to set the env variable PROJSO to the f

Re: [postgis-users] Transform

2012-02-21 Thread Bborie Park
Steve, Are you running Windows? If so, I believe there is a known issue with GDAL not finding the proj.4 DLL. You'll need to set the env variable PROJSO to the full path to the DLL. http://trac.osgeo.org/gdal/wiki/ConfigOptions -bborie On 02/21/2012 11:06 AM, Stephen Crawford wrote: Hi A

Re: [postgis-users] Transform WGS84 to UTM

2011-01-13 Thread Paragon Corporation
-boun...@postgis.refractions.net] On Behalf Of Mars Sjoden Sent: Thursday, January 13, 2011 2:12 AM To: PostGIS Users Discussion Subject: Re: [postgis-users] Transform WGS84 to UTM Just a refresher, WGS84 is a Datum UTM is a Projection that can use WGS84 as its Datum On Wed, Jan 12, 2011 at 1:59

Re: [postgis-users] Transform WGS84 to UTM

2011-01-12 Thread Mars Sjoden
Just a refresher, WGS84 is a Datum UTM is a Projection that can use WGS84 as its Datum On Wed, Jan 12, 2011 at 1:59 AM, Birgit Laggner wrote: > Hi Lelo, > > yes, normally it's very simple. If you know the SRID of the projection you > want to transform your geometry to, you only have to use > >

Re: [postgis-users] Transform WGS84 to UTM

2011-01-12 Thread Birgit Laggner
Hi Lelo, yes, normally it's very simple. If you know the SRID of the projection you want to transform your geometry to, you only have to use ST_Transform(your_geometry_column, new_srid_number) (see: http://postgis.refractions.net/documentation/manual-1.5/ST_Transform.html) If you don't kn

Re: [postgis-users] transform geometry and calculate distance query

2009-02-05 Thread Chris Hermansen
Depending on how you choose to ultimately run this query, if you unwrap the point by point processing into a loop inside a stored procedure, then you can set up an auxiliary table that you use to figure out what UTM zone, and therefore what EPSG, to use for your projection. This is better than usi

RE: [postgis-users] transform geometry and calculate distance query

2009-02-05 Thread Obe, Regina
Mark, Lets say your table is called sometable and is in 4326 projection, then it would look something like SELECT ebas.ebaname, distance(ebas.the_geom, pt.the_geom) as Distance_Metres FROM ebas INNER JOIN (SELECT gid, ST_Transform(the_geom, 32662) As the_geom FROM sometable WHERE gid = 1)

RE: [postgis-users] transform params

2009-01-19 Thread Paragon Corporation
Might have to do with the proj version you are using adnthe nad shift grid thingy. What does SELECT postgis_full_version(); -Original Message- From: postgis-users-boun...@postgis.refractions.net [mailto:postgis-users-boun...@postgis.refractions.net] On Behalf Of toni hernández Sent: Mo

Re: [postgis-users] Transform Coordinates

2008-11-12 Thread Jean David TECHER
Quoting lisek lichu <[EMAIL PROTECTED]>: You can also add new column in Your table SELECT AddGeometryColumn('','table_name','new_column_name','new_SRID','POINT',2); after that jst do: UPDATE table_name set new_column_name = Transform(old_geom_column,new_SRID); after that query You will ha

Re: [postgis-users] Transform Coordinates

2008-11-12 Thread lisek lichu
WOW i didn't know that Thanks a lot :P On Wed, Nov 12, 2008 at 18:16, Jean David TECHER <[EMAIL PROTECTED]>wrote: > The two options are right but becarefull with the second! > > You will have to do something like > > ALTER TABLE ADD COLUMN ... > > Because of the remarks taken from PostgreSQL do

Re: [postgis-users] Transform Coordinates

2008-11-12 Thread Jean David TECHER
The two options are right but becarefull with the second! You will have to do something like ALTER TABLE ADD COLUMN ... Because of the remarks taken from PostgreSQL doc "Adding a column with a non-null default or changing the type of an existing column will require the entire table to be re

Re: [postgis-users] Transform Coordinates

2008-11-12 Thread lisek lichu
You can also add new column in Your table SELECT AddGeometryColumn('','table_name','new_column_name','new_SRID','POINT',2); after that jst do: UPDATE table_name set new_column_name = Transform(old_geom_column,new_SRID); after that query You will have 2 columnt: first with old SRID ald second wi

Re: [postgis-users] Transform Coordinates

2008-11-12 Thread Pablo Tutino
Thank you very much Nicolas. On Wed, Nov 12, 2008 at 8:42 AM, Nicolas Ribot <[EMAIL PROTECTED]> wrote: > > How can I transform the coordinate system of a table ? > > I know the SRID is 4326. > > > > Thanks a lot > > > > Basically, by using st_transform(geometry, srid) on your table. > It may be

Re: [postgis-users] Transform Coordinates

2008-11-12 Thread Nicolas Ribot
> How can I transform the coordinate system of a table ? > I know the SRID is 4326. > > Thanks a lot > Basically, by using st_transform(geometry, srid) on your table. It may be a little more complicated if you have SRID constraints on your table. 2 options among several: 1°) Drop the constraint,

RE: [postgis-users] transform - update lakesetthe_geom=transform(the_geom, 26971)

2008-10-10 Thread Obe, Regina
EMAIL PROTECTED] Sent: Friday, October 10, 2008 11:22 AM To: PostGIS Users Discussion Subject: Re: [postgis-users] transform - update lakesetthe_geom=transform(the_geom, 26971) Thanks to all. The problem in my case was that I relied on PgAdmin doing my SQL queries and it does not display ce

Re: [postgis-users] transform - update lake setthe_geom=transform(the_geom, 26971)

2008-10-10 Thread cyw
riday, October 10, 2008 10:00 AM Subject: Re: [postgis-users] transform - update lake setthe_geom=transform(the_geom, 26971) I have a table city which contains Multipolygons (SRID=4326) in latitude and longitude. To project it to a plane coordinate (SRID=26971), I did: update lake set t

Re: [postgis-users] transform - update lake set the_geom=transform(the_geom, 26971)

2008-10-10 Thread Nicolas Ribot
> I have a table city which contains Multipolygons (SRID=4326) in latitude and > longitude. To project it to a plane coordinate (SRID=26971), I did: > > update lake set the_geom=transform(the_geom, 26971); > > It ran without any error. But some of the resulted values in the_geom column > became

Re: [postgis-users] TRANSFORM failures with some multiploygons - datasample attached

2008-10-09 Thread Luigi Castro Cardeles
is null; > > The sql below returns npoints = 218: > select gid, npoints(the_geom) from city where polygon_id=35665106; > > Thanks, > CYW > > - Original Message - From: "Paul Ramsey" < > [EMAIL PROTECTED]> > To: "PostGIS Users Discussion&quo

Re: [postgis-users] TRANSFORM failures with some multiploygons - datasample attached

2008-10-09 Thread Paul Ramsey
t; CYW > > - Original Message - From: "Paul Ramsey" <[EMAIL PROTECTED]> > To: "PostGIS Users Discussion" > Sent: Thursday, October 09, 2008 10:12 PM > Subject: Re: [postgis-users] TRANSFORM failures with some multiploygons - > datasample attached &g

Re: [postgis-users] TRANSFORM failures with some multiploygons - datasample attached

2008-10-09 Thread cyw
postgis_full_version POSTGIS="1.3.3" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. 4.6.0, 21 Dec 2007" USE_STATS - Original Message - From: "Paul Ramsey" <[EMAIL PROTECTED]> To: "PostGIS Users Discussion" Sent: Thursday, October 09, 2008

Re: [postgis-users] TRANSFORM failures with some multiploygons - data sample attached

2008-10-09 Thread Paul Ramsey
>> It ran without any error. But some of the resulted values in the_geom >> column became null or empty. How did you check this? select gid from thetable where the_geom is null? select gid from thetabel where npoints(the_geom) = P ___ postgis-users mai

Re: [postgis-users] TRANSFORM failures with some multiploygons - data sample attached

2008-10-09 Thread Paul Ramsey
I'm not seeing this problem on your polygon. What does select postgis_full_version() say? On Thu, Oct 9, 2008 at 7:56 PM, <[EMAIL PROTECTED]> wrote: > Hi All, > > In debugging the problem below, I found that TRANSFORM would fail with some > of my city multipolygons. > > I would think that the T

Re: [postgis-users] transform to north america equidistance conical (102010)

2008-09-05 Thread Paul Ramsey
Your syntax looks right, all that's missing is whether the def'n for 102010 you are using matching your input coordinates, which we can't tell, since we don't know what you're using for 102010. P On Fri, Sep 5, 2008 at 11:55 AM, Angel Menendez <[EMAIL PROTECTED]> wrote: > Hi: > doing that > int_x

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-17 Thread Dan Erikson
ing  an intermediary workspace table   Hope that helps, Regina *From:* [EMAIL PROTECTED] on behalf of Kevin Neufeld *Sent:* Wed 7/16/2008 2:24 PM *To:* PostGIS Users Discussion *Subject:* Re: [postgis-users] Transform overlap

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-17 Thread Brent Fraser
ad by creating an intermediary workspace table Hope that helps, Regina *From:* [EMAIL PROTECTED] on behalf of Kevin Neufeld *Sent:* Wed 7/16/2008 2:24 PM *To:* PostGIS Users Discussion *Subject:* Re: [postgis-users] Transform

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Dan Erikson
Title: Re: [postgis-users] Transform overlapping polygons to non-overlapping? Brent, good to see someone else having fun with this issue!  We worked through it a couple of months ago, established a procedure, but had some continuing issues with robustness and performance with large datasets

RE: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Obe, Regina
er. With those follow Kevin's lead by creating an intermediary workspace table Hope that helps, Regina From: [EMAIL PROTECTED] on behalf of Kevin Neufeld Sent: Wed 7/16/2008 2:24 PM To: PostGIS Users Discussion Subject: Re: [postgis-users] Transform overla

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Kevin Neufeld
tely inside another, it is not considered to overlap, but they do intersect. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paragon Corporation Sent: Wednesday, July 16, 2008 12:41 PM To: 'PostGIS Users Discussion' Subject: RE: [postgis-user

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Brent Fraser
Dylan, Yes! Clean polygons! I gravitated towards PostGIS due to my large number of polygons (1.2 million), and I'd like a solution that is scalable beyond that number. GRASS may be the/an answer; I'll give it a try. Thanks! Brent Dylan Beaudette wrote: On Wednesday 16 July 2008, Brent Fra

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Dylan Beaudette
EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Paragon Corporation > > Sent: Wednesday, July 16, 2008 12:41 PM > > To: 'PostGIS Users Discussion' > > Subject: RE: [postgis-users] Transform overlapping polygons to > > non-overlapping? >

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Brent Fraser
Paragon Corporation Sent: Wednesday, July 16, 2008 12:41 PM To: 'PostGIS Users Discussion' Subject: RE: [postgis-users] Transform overlapping polygons to non-overlapping? Brent, INSERT INTO temp3_lines (the_geom) SELECT ST_ExteriorRing( ST_GeometryN(the_geom, generate_series(1, ST_NumGeome

RE: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Paragon Corporation
: Wednesday, July 16, 2008 12:41 PM To: 'PostGIS Users Discussion' Subject: RE: [postgis-users] Transform overlapping polygons to non-overlapping? Brent, INSERT INTO temp3_lines (the_geom) SELECT ST_ExteriorRing( ST_GeometryN(the_geom, generate_series(1, ST_NumGeometries(the_g

RE: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Paragon Corporation
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brent Fraser Sent: Wednesday, July 16, 2008 12:13 PM To: PostGIS Users Discussion Subject: Re: [postgis-users] Transform overlapping polygons to non-overlapping? To all, My quest for non-overlapping polygons continues: I start

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-16 Thread Brent Fraser
ri 7/11/2008 12:14 PM *To:* PostGIS Users Discussion *Subject:* Re: [postgis-users] Transform overlapping polygons to non-overlapping? To All, There doesn't seem to be an obvious answer to the problem given below (aka cleaning polygons, creating planar polygons, etc). I did see a not

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-11 Thread Brent Fraser
-- *From:* [EMAIL PROTECTED] on behalf of Brent Fraser *Sent:* Fri 7/11/2008 12:14 PM *To:* PostGIS Users Discussion *Subject:* Re: [postgis-users] Transform overlapping polygons to non-overlapping? To All, There doesn't seem to be an obvious answer to the problem given below (a

RE: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-11 Thread Obe, Regina
(r.the_geom, a.the_geom))); Hope that helps, Regina From: [EMAIL PROTECTED] on behalf of Brent Fraser Sent: Fri 7/11/2008 12:14 PM To: PostGIS Users Discussion Subject: Re: [postgis-users] Transform overlapping polygons to non-overlapping? To All, There

Re: [postgis-users] Transform overlapping polygons to non-overlapping?

2008-07-11 Thread Brent Fraser
To All, There doesn't seem to be an obvious answer to the problem given below (aka cleaning polygons, creating planar polygons, etc). I did see a note on the PostGIS wiki wishlist to "Add a geometry cleaner". There is also a suggestion to convert to linestrings, node, then polygonize (while

Re: [postgis-users] Transform Error results in connection with PostgreSQL server closed

2007-06-20 Thread Mark Cave-Ayland
On Wed, 2007-06-20 at 15:25 +0200, Lobo wrote: > Hi, > > I have problem executing the following query: > > SELECT transform(the_geom,4326) FROM gm_1996; > > It results in the following error message: > > ERROR: AddToPROJ4SRSCache: couldn't parse proj4 string: '+proj=sterea > +lat_0= 52.1561605