Re: [mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client

2021-09-09 Thread Richard Greenwood
Hey Steve,

Thanks for the reply. I flailed with this for quite a while. I'm not an
Esri user and the vendor that I'm supposed to support is unfamiliar with
WMS. I was trying to follow an Esri example that was returning XML for
GetFeatureInfo requests but I was making a lot of (bad) guesses. In the end
I built a very basic app with the Esri JavaScript client that displayed
GetFeatureInfo responses in a popup. So I've proven that it can be done
which allows me to throw the ball into the vendor's court.

To sort of answer my own question, plain unformatted text with a text/html
mime type displays in the Esri JavaScript client (jsapi) attribute popup.
XML does not appear to be necessary or helpful.

Thanks,
Rich

On Thu, Sep 9, 2021 at 8:59 AM Steve Lime  wrote:

> Hi Rich! I didn't see any replies to this email and I don't have any
> particular experience. That said, it seems to me that the vendor that is
> receiving the content would want it in some sort of presentation agnostic
> format so that they can apply a design, choose which attributes to display
> and so forth. So HTML doesn't make that much sense and standard XML/GML
> responses would be better IMHO.
>
> --Steve
>
> On Wed, Sep 1, 2021 at 5:31 PM Richard Greenwood <
> richard.greenw...@gmail.com> wrote:
>
>> I need to serve WMS GetFeatureInfo requests in a suitable format for an
>> ESRI JavaScript client. I'm asking if anyone has any tips or experience
>> they could share.
>>
>> I'm not developing the client. I'm serving the content to a
>> company that's used to using ESRI REST services and doesn't have any
>> experience with WMS. I don't have any experience with the ESRI JavaScript
>> client.
>>
>> From what little I've found so far the request is typically
>>   INFO_FORMAT=text/html
>> but the response is formatted as XML. Should the response mime type be
>> text/xml or does it matter? Is there an XML structure that the ESRI client
>> expects to receive or is that entirely up to the app developer?
>>
>> Thanks,
>> Rich
>>
>> --
>> Richard W. Greenwood, PLS
>> www.greenwoodmap.com
>> ___
>> MapServer-users mailing list
>> MapServer-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>

-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Anyone got time to help with a MapServer setup?

2021-09-09 Thread Spam
Please let me know - get in touch directly (use s...@crystalsphere.net). 
Happy to pay for time!


Regards,

John


___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client

2021-09-09 Thread Steve Lime
Hi Rich! I didn't see any replies to this email and I don't have any
particular experience. That said, it seems to me that the vendor that is
receiving the content would want it in some sort of presentation agnostic
format so that they can apply a design, choose which attributes to display
and so forth. So HTML doesn't make that much sense and standard XML/GML
responses would be better IMHO.

--Steve

On Wed, Sep 1, 2021 at 5:31 PM Richard Greenwood <
richard.greenw...@gmail.com> wrote:

> I need to serve WMS GetFeatureInfo requests in a suitable format for an
> ESRI JavaScript client. I'm asking if anyone has any tips or experience
> they could share.
>
> I'm not developing the client. I'm serving the content to a company that's
> used to using ESRI REST services and doesn't have any experience with WMS.
> I don't have any experience with the ESRI JavaScript client.
>
> From what little I've found so far the request is typically
>   INFO_FORMAT=text/html
> but the response is formatted as XML. Should the response mime type be
> text/xml or does it matter? Is there an XML structure that the ESRI client
> expects to receive or is that entirely up to the app developer?
>
> Thanks,
> Rich
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Asking help

2021-09-09 Thread WhereGroup
Hi,

as mapserver tells you: unable to access file

make very sure that the files exists and the path is correct. If so,
have a look at the access rights, the user www-data must be allowed to
read the mapfile.

By the way it is not a good idea to store the mapfile in the apache home
because it is now accessible via http:/servername/routing.map ->
everyone can read it an find critical information as file-paths and
database connection information ect..

Jörg

And another one: it would be nice, if you could use a more speaking
subject, so it easier to find your questions and answers in the
list-archive.



Am 09.09.21 um 01:26 schrieb Boubacar Bah:
> Hello everyone hope you are fine . Recently l created an interactive
> map  wicth can calculate an itinerary
> And after created a mapefile and the template html
> I used the link below:
> *http://localhost/cgi-bin/mapserv.exe?map=/var/www/html/routing.map=route
> 
> & mode=browse*
> But the pages send me an errors:
> *MsloadMap():unable to access file.(/var/www/html/routing.map)*
> And l don't how to fix this issues if someone can help me please
> Thanks in advance
> 
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Handling of NoData in WCS with MapServer

2021-09-09 Thread CASTRO, Emmanuel via MapServer-users
Hello

I have another question about MapServer capabilities. In my technical tests, I 
am trying to serve a GeoTiff Float32 with a declared NoData value (i.e. 
-3.4028234663852886e+38).
The GeoTiff file resulting from my WCS request transforms the NoData value to 
0, which is problematic because 0 can be a real data.

Is there a way to handle this problem?

I think I can prepare the GeoTiff file by filling the NoData with a value that 
I control, and then declaring it in the WCS nilValues metadata ; however I 
would like to avoid preprocessing my input files with gdal_translate or 
gdal_fillnodata.

Thanks

Emmanuel

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer 7.4.3 - Poor projection from British National Grid (EPSG 27700) to WebMercator (EPSG 3857)

2021-09-09 Thread BenH
I have tried some tests of this.
A simple view, outputting the geometry with ST_Transform, is not
performant at all - the transform breaks the spatial index and it's a
large dataset.
I assume that would still be an issue with a materialized view.
So I think the only PostGIS option would be to create a full copy of the
geometry with its own index. I've tested this, so it is a fall back
option - but it's a lot of data duplication and the Mapserver transform
is really quick.
Thanks

On 06/09/2021 13:38, Mike Saunt wrote:
> Ben
>
> Have you considered using PostGIS to do the transformation instead? 
> Also, depending on the amount of data you could set up some material
> views building transformed data or similar which may make it more
> responsive, if that is needed.
>
> All the best
> Mike


___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users