[Geomoose-users] Web Mercator demo, identify and pop up issues
Len Kne
lkne at houstoneng.com
Tue Apr 13 09:49:18 EDT 2010
Hi Nayna
The parcel layer in the web Mercator demo is being consumed as a WMS service which I does not have the configuration to make it identifiable. I'm not sure without looking, but I thing popups currently only support a mapserver type map-source. A way to get around this would be to:
1. Get the parcel shape file from the "county" demo and re-project it to web Mercator.
2. Look at parcel.map in the "county" demo, it will have all of the metadata tags needed for identify and pop-up
3. Copy the parcel map-source from the "county" demo
Len
From: Nayna Nayate [mailto:nayna.nayate at gis.leg.mn]
Sent: Monday, April 12, 2010 2:15 PM
To: 'geomoose-users at lists.sourceforge.net'
Subject: [Geomoose-users] Web Marcator demo, identify and pop up issues
I am trying to get the parcel data demo to work in the Web Mercator mapbook.xml. I was able to get it to work in the original mapbook.xml after changing to the full path instead of ./demo/landrecords/parcels.map in the mapbook.xml
<map-source name="parcels" type="mapserver">
<file>/web/gis/geomoose/maps/demo/landrecords/parcels.map</file>
<layer name="parcels"/>
</map-source>
When I select the pop-up option for the parcels, I get the following errors.
Warning: getLayerByName failed for : parcels in /web/gis/geomoose/htdocs/php/popups.php on line 62
Fatal error: Call to a member function set() on a non-object in /web/gis/geomoose/htdocs/php/popups.php on line 67
The mapbook code for parcels.map is, where the full path is being referred to
<map-source name="parcels" type="wms" projection="EPSG:26915" >
<url>/cgi-bin/mapserv</url>
<layer name="parcels"/>
<param name="map" value="/web/gis/geomoose/maps/demo/landrecords/parcels.map"/>
<param name="format" value="image/png"/>
<param name="TRANSPARENT" value="TRUE"/>
</map-source>
Similarly with identify, I see the coordinates, but none of the info from the idenfy_parcels.html template and sometime and the following error.
Fatal error: [MapServer Error]: msGEOSShapeFromWKT(): Error reading WKT geometry "POLYGON((-10369433.897517 5556128.3371359,-10369433.897517 5556128.3371359))". in /web/gis/geomoose/htdocs/php/identify.php on line 83
I haven't changed anything in the parcel.map file that is part of the demo.
I can provide more information if needed. Any insights on why the pop-up and identify tools aren't working?
Thanks
Nayna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100413/97f59e97/attachment.html
More information about the Geomoose-users
mailing list