[Geomoose-users] Feature Report error with Identify Tool
Fernando
nando_gcia at hotmail.com
Wed Jun 3 01:35:43 PDT 2015
Hello Brent, have now tested your notes on Hydrography OSM. When active the MapQuest OSM Catalog type layer many calls are made:
http://otile1.mqcdn.com/tiles/1.0.0/osm/10/81586/63404.png
but all have not found 404 results. And when I click on the hyperlink "report" of feature_report.php these errors are displayed:
Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): MS_DEFAULT_MAPFILE_PATTERN validation failed.
in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 45
Warning: ms_newMapObj(): [MapServer Error]: msEvalRegex(): String failed expression test.
in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 45
Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "/ms4w/apps/geomoose2/maps/"' in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php:45
Stack trace:
#0 C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php(45): ms_newMapObj('/ms4w/apps/geom...')
#1 {main}
thrown in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 45
I've seen the Regular expression error. MS_DEFAULT_MAPFILE_PATTERN failed validation error when the extension to the map file in the URL is incorrect.
Perhaps
the problem is related to my erroneous projection of drawing in ArcGIS,
but as I said at the beginning of my practice in the mailing list for
our project does not need any projection, only we need the drawing
visualize and can be consulted on it. For now we will not use the "feature_report". Thanks for everything.
Date: Mon, 1 Jun 2015 17:09:55 -0600
From: bfraser at geoanalytic.com
To: nando_gcia at hotmail.com; geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Feature Report error with Identify Tool
I need to correct the information is sent. The first part of the
instructions below ("Edit the feature_report service...") is not
necessary as the key field name is specified in the template
("<query item="), not the service definition.
Best Regards,
Brent Fraser
On 6/1/2015 10:57 AM, Brent Fraser
wrote:
There doesn't seem to be a lot of documentation for the Feature
Report service, so I made some notes:
Feature
Reports
Edit
(or copy) the feature_report service in the mapbook to add the
key field, for example:
<service name="feature_report_Hydrography"
display="false" keep-others="true">
<url>php/feature_report.php</url>
<input type="hidden" name="layers"
value="Backgrounds/osm"/>
<input type="hidden" name="src"/>
<input type="hidden" name="BF_ID"/>
</service>
Add
the metadata to the feature’s map file:
METADATA
'identify_record'
'BF_HYDRO_POLYGON_identify.html'
'popups'
'BF_HYDRO_POLYGON_popups.html'
'feature_report'
'BF_HYDRO_POLYGON_report.xml'
END
# of METADATA
Edit
the _identify template to add a link to generate and view the
report. For example my BF_HYDRO_POLYGON_identify.html
template
has:
<tr><td
align="left"><b><a href = "javascript:GeoMOOSE.startService('feature_report_Hydrography',
{'BF_ID'
: '[BF_ID]',
'src' :
'Hydrography/Lakes'})">Report</a></b></td></tr>
Create
the report xml file (in my case the file is named BF_HYDRO_POLYGON_report.xml)
modifying the key name and the PDF report name:
<query item="BF_ID"
string="%qstring%"/>
<!-- This is the template -->
<template>BF_HYDRO_POLYGON_template.pdf</template>
Create
the report PDF file
Copy
the parcel_template.pdf to the name you entered in the report
xml file, for example:
copy
parcel_template.pdf BF_HYDRO_POLYGON_template.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20150603/3bca25bf/attachment-0001.html>
More information about the Geomoose-users
mailing list