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

Matej Mailing mailing at tam.si
Tue Oct 16 10:30:58 PDT 2012


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:

[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




2012/10/16 Jim Klassen <klassen.js at gmail.com>:
>
> On Oct 16, 2012, at 10:08 AM, Matej Mailing wrote:
>>
>> doesn't work as it should. The features are successfully added in the
>> for loop as points, but then it stops and I get a blank image. I am
>> using Ubuntu and have found out some issues with loadparams() and
>> suggestions to replace it with
>>        foreach ($_GET as $k=>$v) {
>>                $request->setParameter($k, $v);
>>        }
>>
>
> My ruby dynamic WMS server MapScript code calls setParameters() instead of loadparams(), so this seems reasonable.
>
>         map = "MAP .... END" # shortened because it doesn't matter in this example
>         map = Mapscript::msLoadMapFromString(map, "/tmp")
>
>         req = Mapscript::OWSRequest.new()
>         cgi = CGI.new()
>         params = cgi.params
>         params.each do |k,v|
>             v.each do |vv|
>                 req.setParameter(k, vv)
>             end
>         end
>
>         Mapscript::msIO_installStdoutToBuffer()
>
>         map.OWSDispatch(req)
>
>         ct = Mapscript::msIO_stripStdoutBufferContentType()
>         res = Mapscript::msIO_getStdoutBufferBytes()
>         print "Content-type: #{ct}\n\n"
>         print res


More information about the Geomoose-users mailing list