[Geomoose-users] Fwd: Highlighting issue (Mapserver layer)

Matej Mailing mailing at tam.si
Tue Oct 23 11:19:47 PDT 2012


Brian,

It is a point layer. I can confirm that point layer was not working
until I set a symbol inside class and it could be the same for the
line layer. I am going to do some line highlighting in the following
days and will report it here if anything new shows up.

Basically my current highlight.map points layer now looks like:
        LAYER
                NAME 'points'
                GROUP 'highlight'
                TYPE POINT
                STATUS DEFAULT
                CLASS
                        SYMBOL 'circle'
                        COLOR 255 255 0
                        MAXSIZE 15
                        MINSIZE 12
                END
        END

and only the symbolset is included in the beginning of the file. Other
is the same as original.

Regards,
Matej

2012/10/23 Brian Fischer <bfischer at houstoneng.com>:
> Matej,
> Was this from a point layer? I see the line layer has no style or symbol defined either. Do you know whether that works?
>
> Can you send us the corrected highlight.map file you used so I can get the source files updated?
>
> Thanks!
>
> Brian Fischer, CFM
> Principal | GIS Project Manager
> Houston Engineering, Inc.
> O 763.493.4522 | D 763.493.6664 | M 763.229.2734
>
> -----Original Message-----
> From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Matej Mailing
> Sent: Tuesday, October 16, 2012 4:54 PM
> To: Jim Klassen
> Cc: GeoMOOSE Users List
> Subject: Re: [Geomoose-users] Fwd: Highlighting issue (Mapserver layer)
>
> You were right, the errors were caused due to a stupid typo that was contained in the generated mapfile and the blank highlight output was caused because I had no symbol defined to be shown. After changing it, everything works as smooth as possible :-)
>
> Thanks.
>
> Regards,
> Matej
>
> 2012/10/16 Jim Klassen <klassen.js at gmail.com>:
>> On 10/16/2012 12:30 PM, Matej Mailing wrote:
>>> Now when enabling logging on php/itemquery/highlight.map I see that
>>> features are not added to the layer as I was thinking.
>>>
>>> I get
>>> [Tue Oct 16 17:20:35 2012].974701 getSymbol(): Symbol definition
>>> error. Parsing error near (upper):(line 220) and then a number of
>>> those lines:
>> This means there is a syntax error on line 220 of the mapfile.  Now
>> the question is, "Which mapfile?"  I'm guessing the mapfile generated
>> in query.php around line 428.
>>
>> Try looking at $mapfile (print it to stderr or dump it to a temp file
>> and open it in an editor (after the processTemplate line and before
>> the ms_newMapObjFromString line).  My guess is there is a problem on
>> line
>> 220 of that.
>>
>>>
>>> [Tue Oct 16 17:20:37 2012].142038 msBuildOnlineResource(): CGI error.
>>> Impossible to establish server URL.
>>> [Tue Oct 16 17:20:37 2012].142064 msOWSGetOnlineResource(): CGI error.
>>> Impossible to establish server URL.  Please set "onlineresource"
>>> metadata.
>>>
>>> I have set 'ows_onlineresource' and 'ows_service_onlineresource' to
>>> 'http://ip/cgi-bin/mapserv?' and no matter what I do (I even set
>>> wms*,
>>> wfs* and wcs*). What bothers me and perhaps is the cause of the
>>> errors, is the first (Symbol definition error. Parsing error near
>>> (upper)) error. Could this error cause the mapserver to stop parsing
>>> the mapfile and thus ignoring my multiple *onlineresource metadata?
>>> Does anyone else experiences this issue?
>>>
>>> I really want to move forward on this one, but I seem to be lost.
>>>
>>> Regards,
>>> Matej
>>
> _______________________________________________
> 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