Ticket #1679 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

Intersect give ERROR: AddToPROJ4SRSCache

Reported by: andreasft Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
Keywords: Cc:

Description

Intersecting two gemetries (casted to geography) and calculating the sum of this intersection in sq.km return this error:

ERROR: AddToPROJ4SRSCache: couldn't parse proj4 string: '+proj=utm +zone=0 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs': invalid UTM zone number

********** Error **********

ERROR: AddToPROJ4SRSCache: couldn't parse proj4 string: '+proj=utm +zone=0 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs': invalid UTM zone number SQL state: XX000

The query:

select p.gid, SUM(ST_Area(ST_Intersection(p.cell::geography, c.geom::geography)))/10002 AS landarea FROM cshapeswdatevalid c, priogrid_land p WHERE ST_Intersects(p.cell::geography, c.geom::geography) AND c.gwsyear <= 2008 AND c.gweyear >= 2008 GROUP BY p.gid ORDER BY p.gid;

svn, rev 9240

Attachments

bug_1679.dump Download (1.8 KB) - added by strk 14 months ago.

Change History

Changed 14 months ago by andreasft

Changed 14 months ago by strk

Changed 14 months ago by strk

I attached a reduction o input dataset. After restoring, you can reproduce the issue with:

SELECT ST_Intersection(c_geog, p_geog) from bug_1679;

Changed 14 months ago by strk

  • status changed from new to closed
  • resolution set to fixed

Fixed by r9476

Note: See TracTickets for help on using tickets.