[Geomoose-users] identify service
Sean Ziniker
Sean.Ziniker at co.jefferson.or.us
Wed Oct 6 18:15:15 EDT 2010
1. Projection is 900913 in settings.ini
2. I was getting xy coords before I made the changes and my
identify results.
3. Firebug:
Params:
_moosetime 1286402133712
layers
parcelHighlight/all:labelmap/TaxlotLabel:labelmap/CountiesLabel:labelmap
/Disclaimer:countymap/Counties:taxmap/Taxlot:google_streets/all
shape POINT(-13477271.724452 5561510.4041126)
Respones:
<results><script/><html><![CDATA[<!-- MapServer Template -->
Detailed information for the area you clicked on the map...
<table border="0">
<tr>
<td colspan="2"><b><u>Ground Coordinates</u></b>
<br>
<b>X: </b>-0
<br>
<b>Y: </b>0</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<table border="0" cellpadding="1" cellspacing="2">
<!-- MapServer Template -->
<tr>
<td colspan="2">Disclaimer: This information is being distributed as
demonstation data only. You should not use the data for any other
purposes.</td>
</tr>
</table>
]]></html></results>
4. First line in "identify_taxlot.html" is <!-- MapServer Template
-->
Thanks for your suggestions!
Sean Ziniker
GIS Analyst
Jefferson County, Oregon
66 S.E. "D" Street, Suite B
Madras, OR 97741
541.325.5083 Office
541.325.5089 Fax
________________________________
From: Len Kne [mailto:lkne at houstoneng.com]
Sent: Wednesday, October 06, 2010 2:53 PM
To: Sean Ziniker; geomoose-users at lists.sourceforge.net
Subject: RE: identify service
A couple things to check:
1. Make sure the projection is set to 900913 in conf/settings.ini
2. Were you getting XY returned with the Identify before making
the changes?
3. Take a look at the PARAMS and RESPONSE tab in FireBug when
running the Identify service.
4. If the Identify is not returning the template information for
individual layers, make sure the first line of the template file is
<!-MapServer Template -->
Len
From: Sean Ziniker [mailto:Sean.Ziniker at co.jefferson.or.us]
Sent: Wednesday, October 06, 2010 4:46 PM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] identify service
Yes I did. I tried both ways and same results. The other thing I
noticed is that I get no identify results; there is just a blank space.
Sean Ziniker
GIS Analyst
Jefferson County, Oregon
66 S.E. "D" Street, Suite B
Madras, OR 97741
541.325.5083 Office
541.325.5089 Fax
________________________________
From: Len Kne [mailto:lkne at houstoneng.com]
Sent: Wednesday, October 06, 2010 2:42 PM
To: Sean Ziniker; geomoose-users at lists.sourceforge.net
Subject: RE: identify service
Looks right, did you see Steve Dougill's post to comment out:
#$map->queryByPoint($point, MS_MULTIPLE, -1);
Len
From: Sean Ziniker [mailto:Sean.Ziniker at co.jefferson.or.us]
Sent: Wednesday, October 06, 2010 2:58 PM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] identify service
Sorry, I forgot I reprojected my data into proj:900913 earlier do to a
different conflict, so the projection should be correct but I am still
displaying x:-0, y:0
Sean Ziniker
GIS Analyst
Jefferson County, Oregon
66 S.E. "D" Street, Suite B
Madras, OR 97741
541.325.5083 Office
541.325.5089 Fax
________________________________
From: Len Kne [mailto:lkne at houstoneng.com]
Sent: Wednesday, October 06, 2010 12:42 PM
To: Sean Ziniker; geomoose-users at lists.sourceforge.net
Subject: RE: identify service
Sorry all, I first stated that $projInObj had to be in the map
projection, but it should be the projection the data is in. Sean, try
the proj4 string for Oregon SP and it should work.
Len
From: Sean Ziniker [mailto:Sean.Ziniker at co.jefferson.or.us]
Sent: Wednesday, October 06, 2010 2:25 PM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] identify service
Len,
When I try the code change for latlong I get x:-0, y:0. I am using
900913 projection and my shapefiles are in an Oregon State Plane. If I
change the projection portion of the code to my state plane projection I
get values but they are incorrect.
Here is my code change:
if($queryShape->type == MS_SHAPE_POINT) {
$point =
$queryShape->line(0)->point(0);
$map->queryByPoint($point,
MS_MULTIPLE, -1);
$clonePoint = $point;
$projOutObj =
ms_newprojectionobj("proj=latlong");
$projInObj =
ms_newprojectionobj("+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0
+lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");
$clonePoint->project($projInObj,
$projOutObj);
$substArray['mapx'] =
round($clonePoint->x,4);
$substArray['mapy'] =
round($clonePoint->y,4);
}else {
$map->queryByShape($queryShape);
}
Do you have any idea what I am doing wrong?
Thanks
Sean Ziniker
GIS Analyst
Jefferson County, Oregon
66 S.E. "D" Street, Suite B
Madras, OR 97741
541.325.5083 Office
541.325.5089 Fax
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20101006/92812f88/attachment.html
More information about the Geomoose-users
mailing list