[postgis-users] ERROR: rt_raster_from_two_rasters:
Hugues François
hugues.francois at irstea.fr
Fri May 30 01:12:18 PDT 2014
Hi,
When you reproject rasters, pixels from different tiles may not have the same alignment and union is not possible. Since version 2.1 you may give a reference raster to get the right alignment (see variant 3 here http://postgis.net/docs/RT_ST_Transform.html)
Hugues.
De : postgis-users-bounces at lists.osgeo.org [mailto:postgis-users-bounces at lists.osgeo.org] De la part de Jason Mathis
Envoyé : jeudi 29 mai 2014 20:45
À : postgis-users at lists.osgeo.org
Objet : [postgis-users] ERROR: rt_raster_from_two_rasters:
I loaded a bunch raster data into separate tables. One for each us western state. I thought it maybe handy to query a view instead of the individual tables. Anyways everything seemed ok but I started to get errors on a few ids I was testing. I knew what table it should be pulling from so I queried the table and no issues. So i must assume the error is because of the “union all” in the view. Can anyone confirm this and why? I am on postgres 9.2.8 and postgis 2.1.2.
thanks,
jason
query>>>
SELECT
report_id, incident_id,
ST_SummaryStats(
ST_UNION(
ST_Clip(c.rast, 1,
ST_Transform(w.geom, 5070), true)
),
1
) as hdesc
FROM rasters c
JOIN w_reports w
ON ST_Intersects(c.rast, ST_Transform(w.geom, 5070))
where w.incident_id = 5443
group by incident_id, report_id
error>>>
ERROR: rt_raster_from_two_rasters: The two rasters provided do not have the same alignment
********** Error **********
ERROR: rt_raster_from_two_rasters: The two rasters provided do not have the same alignment
SQL state: XX000
This transmission contains confidential and privileged information intended solely for the party identified above. If you receive this message in error, you must not use it or convey it to others. Please destroy it immediately and contact the sender at (303) 386-3955 or by return e-mail to the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20140530/85bee7ce/attachment.html>
More information about the postgis-users
mailing list