[Geomoose-users] Identify error in Geomoose 2.6 (trying to update cersion from geomoose 2.2)

Matej Mailing mailing at tam.si
Wed Oct 17 03:10:32 PDT 2012


Hi,

I am not so familiar with Mapscript yet, but it seems strange to me
that this "reprojectWKT($queryShape->toWkt(), $shape_proj, $map_proj)"
returns empty string. Try setting $DEBUG = true at the beginning of
the the identify.php, there could be some interesting debugging
information in the apache error log.

Regards,
Matej

2012/10/17 Efstathios Arapostathis <e.arapostathis at gmail.com>:
> Hi,
>
>   I've tried firebug, I'm receiving the following message:
>
>
> Fatal error: Uncaught exception 'MapScriptException' with message 'Unable to
> construct shapeObj.' in C:\ms4w\apps\geomoose2\htdocs\php\identify.php:145
>
> Stack trace:
> #0 C:\ms4w\apps\geomoose2\htdocs\php\identify.php(145):
> ms_shapeObjFromWkt('')
> #1 {main}
>
>   thrown in C:\ms4w\apps\geomoose2\htdocs\php\identify.php on line 145
>
>
>
> Additional Info: My layer is a PostGIS Layer. I'm attaching the map file and
> the identify.html with some changes that I've done.
>
> Any help would be really appreciated.
>
> kind regards,
> Stathis
>
>
>
>
>
> On Tue, Oct 16, 2012 at 9:10 PM, Matej Mailing <mailing at tam.si> wrote:
>>
>> Hi,
>>
>> try to check to output of the template.php with Firebug and perhaps
>> turning the debugging mode on. You will get more information then.
>>
>> Regards,
>> Matej
>>
>> 2012/10/16 Efstathios Arapostathis <e.arapostathis at gmail.com>:
>> > Hi,
>> >
>> >    I've installed the new version of Geomoose 2.6 (I was using version
>> > 2.2)
>> > but I'm facing problems with the identify service.
>> > I've changed my map file (like the firestations.map file which I used as
>> > a
>> > template).
>> > At first I saw that now we have to use a template object in our map
>> > script?
>> >
>> > The error message I'm receing is this:
>> >
>> > The service you called did not return valid XML. If you are the system
>> > administrator, you should look into this, if you are not the system
>> > administrator you should tell them about this.
>> >
>> > Below I paste three files. First one is my map file. Second one is my
>> > identify.html file that I was using on Geomoose 2.2. The third one is
>> > the
>> > imagemap_record file which I tried to use as a template.
>> >
>> >
>> > MAP FILE
>> >
>> > MAP
>> >     NAME 'ekthemanew'
>> >     SIZE 800 650
>> >     STATUS ON
>> >     EXTENT  2120556.1495784903 3610867.081920644 3593336.723825039
>> > 5120032.47940209
>> >     UNITS METERS
>> >     INCLUDE "../../geomoose_globals.map"
>> >     TRANSPARENT TRUE
>> >     IMAGETYPE PNG
>> >
>> >     QUERYMAP
>> >         STATUS ON
>> >         STYLE SELECTED
>> >     END
>> >
>> >     PROJECTION
>> >         "init=epsg:3857"
>> >     END
>> >
>> >     WEB
>> >         QUERYFORMAT "text/html"
>> >         INCLUDE "../../temp_directory.map"
>> >         METADATA
>> >             "wms_title" "WMS Ekthemanew"
>> >             "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe"
>> >             "wms_srs" "EPSG:3857"
>> >             'ows_enable_request' '*'
>> >         END
>> >
>> >     END
>> >
>> >     LEGEND
>> >           STATUS ON
>> >           LABEL
>> >         TYPE TRUETYPE
>> >         FONT vera_sans
>> >         SIZE 8
>> >         COLOR 0 0 0
>> >           END
>> >     END
>> >
>> >     DEBUG ON
>> >
>> >     LAYER
>> >         DUMP TRUE
>> >         NAME 'ekthemanew'
>> >         CONNECTIONTYPE postgis
>> >         CONNECTION 'host=localhost user=postgres password=1234
>> > dbname=nath_museum'
>> >            DATA 'the_geom FROM ekthemanew'
>> >         TYPE POINT
>> >         STATUS ON
>> >         CLASS
>> >             NAME 'ekthemanew'
>> >               STYLE
>> >              SYMBOL 'arxaia'
>> >              SIZE 15
>> >             END
>> >           END
>> >         #MAXSCALE 1500000
>> >         HEADER 'imagemap_header.xml'
>> >         TEMPLATE 'identify_ekthemanew.html'
>> >         FOOTER 'imagemap_footer.xml'
>> >
>> >         METADATA
>> >             'identify_record' 'identify_ekthemanew.html'
>> >             "ows_title" "Ekthemanew"
>> >             "gml_include_items" "all"
>> >             "ows_include_items" "all"
>> >             "gml_exclude_items" "SHAPE_area,SHAPE_len"
>> >         END
>> >
>> >         TOLERANCEUNITS FEET
>> >         TOLERANCE 1000000
>> >     END
>> >
>> > END ## end Map
>> >
>> > IDENTIFY_EKTHEMANEW.HTML FILE
>> >
>> > <!-- MapServer Template -->
>> > <tr>
>> > <td colspan="2"><b>Έκθεμα:</b></td>
>> > </tr>
>> > <tr>
>> > <td align="right">Συλλογή:</td>
>> > <td>[syllogh_ek]</td>
>> > </tr>
>> > <tr>
>> > <td align="right">Περίοδος:</td>
>> > <td>[xronol_ek]</td>
>> > </tr>
>> > <tr>
>> > <td align="right">Περιγραφή:</td>
>> > <td>[desc_ek]</td>
>> > </tr>
>> >
>> > IMAGEMAP_RECORD.XML
>> >
>> > <popup shape='circle' coords='[shpxy xf="," proj=image],5'>
>> >     <title>Ekthemata</title>
>> >     <id>Id-[gid]</id>
>> >     <item title="Nane:">[name_ek]</item>
>> >     <item title="Collection:">[syllogh_ek]</item>
>> > </popup>
>> >
>> >
>> > _______________________________________________
>> > Geomoose-users mailing list
>> > Geomoose-users at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/geomoose-users
>> >
>
>


More information about the Geomoose-users mailing list