Hello,<br><br>I&#39;m trying to get a handle on projections and reprojections.&nbsp; I have a dataset in a postgis database table that is in epsg:26915 (it&#39;s the state of MN).&nbsp; I know this from the metadata provided by the provider (state of Minnesota itself).<br>
<br>When I loaded it into postgis, the geometry_columns row for this table/column combo set srid=-1.&nbsp; As I know that this is in epsg:26915, I manually changed the geometry_columns row entry to it (see: === geometry_columns === section).<br>
<br>Problem is, I get an error of using two different geometries.&nbsp; Anybody have any idea how i set the srid to the correct value of epsg:26915?&nbsp; I&#39;d like to set this correctly so I can reproject it as necessary.&nbsp; The map will render with srid=-1, but then I don&#39;t think I can reproject the image correctly, right?<br>
<br>below are what I think are the important sections to this problem.&nbsp; Thanks in advance for your help.<br><br>Matt<br><br>=== url ===<br>
======================================================================<br clear="all">
<a href="http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\mapreproj.map&amp;mode=map">http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs\ol\mapreproj.map&amp;mode=map</a><br>
======================================================================<br clear="all">
<br>=== error message ===<br>
======================================================================<br clear="all">

msDrawMap(): Image handling error. Failed to draw layer named &#39;state&#39;.
msPOSTGISLayerWhichShapes(): Query error. Error executing POSTGIS SQL
statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),&#39;NDR&#39;),gid::text from
shp_state WHERE the_geom &amp;&amp; setSRID(&#39;BOX3D(141095.125
4809728.25,810342.625 5478975.75)&#39;::BOX3D,
find_srid(&#39;&#39;,&#39;shp_state&#39;,&#39;the_geom&#39;) )
-ERROR: Operation on two geometries with different SRIDs

<br>======================================================================<br clear="all">

<br>=== geometry_columns ===<br>======================================================================<br clear="all">oid;f_table_catalog;f_table_schema;f_table_name;f_geometry_column;coor_dimension;srid;type<br>336791;&quot;&#39;&#39;&quot;;&quot;public&quot;;&quot;shp_state&quot;;&quot;the_geom&quot;;2;26915;&quot;MULTIPOLYGON&quot;<br>
======================================================================<br clear="all"><br>=== mapreproj.map ===<br>======================================================================<br clear="all">MAP<br><br>&nbsp;&nbsp;&nbsp; ################<br>
&nbsp;&nbsp;&nbsp; # Map attributes<br>&nbsp;&nbsp;&nbsp; ################<br>&nbsp; IMAGETYPE&nbsp;&nbsp; PNG<br>&nbsp; EXTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 184056.505 4809728.25 767381.245 5478975.75<br>&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600 600<br>&nbsp; IMAGECOLOR&nbsp; 255 255 255<br>&nbsp; FONTSET&nbsp;&nbsp;&nbsp;&nbsp; &quot;C:/ms4w/Apache/htdocs/fonts/fonts.list&quot;<br>
<br>&nbsp;&nbsp;&nbsp; ####################<br>&nbsp;&nbsp;&nbsp; # Web settings<br>&nbsp;&nbsp;&nbsp; ####################<br>&nbsp; WEB<br>&nbsp;&nbsp;&nbsp; IMAGEPATH&nbsp;&nbsp; &quot;C:/ms4w/Apache/htdocs/tmp/&quot;<br>&nbsp;&nbsp;&nbsp; IMAGEURL&nbsp;&nbsp;&nbsp; &quot;/tmp/&quot;<br>&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; ####################<br>
&nbsp;&nbsp;&nbsp; # State<br>&nbsp;&nbsp;&nbsp; # Background shows through missing precincts to show where no votes will be coming from<br>&nbsp;&nbsp;&nbsp; ####################<br>&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;state&quot;<br><br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE&nbsp;&nbsp;&nbsp; postgis<br>
&nbsp;&nbsp;&nbsp; CONNECTION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;user=postgres dbname=gisvote password=postgres&quot;<br>&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;the_geom from shp_state&quot;<br>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default<br>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; polygon<br><br>&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;state&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200 200 200<br>&nbsp;&nbsp;&nbsp; END<br><br>&nbsp; END # Layer state<br><br>END<br>======================================================================<br clear="all"><br><br>
-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>-- Murray Waas