[Geomoose-users] issues with select feature (buffered select) tool
Mark Volz
MarkVolz at co.lyon.mn.us
Fri Mar 3 14:08:20 PST 2017
Hello,
I am having difficulty configuring the buffered select tool to work. I am getting an error stating that the service did not return valid xml. It appears config.php is having issues creating a projectionObj. So I must be having some kind of issue with my projection. I did notice that the service did post the correct projection which is EPSG: 103749.
Questions:
Why what would cause an error while creating a projection object? What can I do to fix the error?
Mapbook Service
<service name="buffered_select" title="Select Features" clear-highlight="true">
<url>php/query.php</url>
<!-- Send a selection shape + the visible layers list to the service -->
<step type="spatial" show-tools="true" name="shape0" line="true" polygon="true" point="true" default="polygon" edit-polygon="true" pan="true">
<header><![CDATA[Create a selection area by clicking on the map.]]></header>
<!--
<input type="visiblelayers" name="layers"/>
-->
<input type="hidden" name="mode" value="search"/>
<!-- caching must be turned on to allow for mailing labels to work -->
<input type="hidden" name="cache" value="true"/>
<input type="hidden" name="header0" value="select_header"/>
<input type="hidden" name="footer0" value="select_footer"/>
<input type="hidden" name="template0" value="select_record"/>
<!--
Option values should be the mapbook path to the layer.
This only supports 'mapserver'-type layers.
-->
<input type="select" name="layer0" title="Select features from:">
<option value="AllLayers/Parcels">Parcels</option>
<!--<option value="pipelines/pipelines">Pipelines</option>-->
<!--<option value="parcel_points/parcel_points">Parcel Points</option>-->
</input>
<input type="length" name="shape0_buffer" title="Buffer Selection Shape by">0</input>
<input type="select" name="shape0_layer" title="Using Features In">
<option value="">No Layer</option>
<option value="AllLayers/Parcels">Parcels</option>
</input>
<input type="length" name="shape0_layer_buffer" title="Buffer Features by">0</input>
<input type="projection" name="projection"/>
<footnote><![CDATA[
]]></footnote>
</step>
</service>
POST Parameters
Cache true
dojo.preventCache 1488578514910
footer0 select_footer
header0 select_header
layer0 AllLayers/Parcels
mode search
projection EPSG:103749
shape0 POLYGON((462408 109940,464856 110324,465320 108756,462408 109940))
shape0_buffer0
shape0_layer AllLayers/Parcels
shape0_layer_buffer 0
template0 select_record
Response
b>Fatal error</b>: Uncaught exception 'MapScriptException' with message 'Unable to construct projectionObj.' in C:\ms4w\apps\geomoose2\htdocs\php\config.php:191
Stack trace:
#0 C:\ms4w\apps\geomoose2\htdocs\php\config.php(191): ms_newProjectionObj('EPSG:32616')
#1 C:\ms4w\apps\geomoose2\htdocs\php\service.php(816): saneBuffer(Object(shapeObj), NULL, 1E-005)
#2 C:\ms4w\apps\geomoose2\htdocs\php\service.php(472): Service->getQueryShapes(Object(shapeObj), '0', 'AllLayers/Parce...', '0')
#3 C:\ms4w\apps\geomoose2\htdocs\php\service.php(786): Service->parseQuery()
#4 C:\ms4w\apps\geomoose2\htdocs\php\query.php(133): Service->run()
#5 {main}
thrown in <b>C:\ms4w\apps\geomoose2\htdocs\php\config.php</b> on line <b>191</b><br />
Sincerely,
Mark Volz, GISP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20170303/960e24f2/attachment.html>
More information about the Geomoose-users
mailing list