Re: [mapserver-users] asking help about importing gdal librarie in apache python

2021-09-27 Thread CASTRO, Emmanuel via MapServer-users
I seldom use MS4W. On Windows I’d rather use Conda Python distribution which 
comes with GDAL binding for Python (cf. https://gdal.org/download.html#windows).

However four you MS4W installation, you can test this, from the MS4W doc : 
https://www.ms4w.com/README_INSTALL.html#gdal-bindings
I think that you are missing an environment variable; maybe you should put the 
GDAL DLL explicitly in the PATH.

Good luck

Emmanuel

De : MapServer-users  De la part de 
Boubacar Bah
Envoyé : samedi 25 septembre 2021 17:50
À : mapserver-users@lists.osgeo.org
Objet : [mapserver-users] asking help about importing gdal librarie in apache 
python

This mail has been sent from an external source

hello everyone ; i work with mapserver apache ; now i want to work with gdal 
library if l  try to import the gdal this  in python  they send me an error 
this  is the error message below:
>>> from osgeo import gdal
Traceback (most recent call last):
  File "", line 1, in 
  File "c:\ms4w\Python\lib\site-packages\osgeo\__init__.py", line 21, in 

_gdal = swig_import_helper()
  File "c:\ms4w\Python\lib\site-packages\osgeo\__init__.py", line 17, in 
swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
  File "c:\ms4w\Python\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
  File "c:\ms4w\Python\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed while importing _gdal: Le module spécifié est 
introuvable.
if someone can fix this l will please.
thank advance.
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] aking help about wms connection with mapserver

2021-09-23 Thread CASTRO, Emmanuel via MapServer-users
Bonjour

Given the pathname of your path, it seems that your deployment is on Windows.
Maybe it is because you omitted the .exe suffix at the end of 
‘…cgi-bin/mapserv?...’. Try ‘…cgi-bin/mapserv.exe?...’.

Double-check the map path too. It’s always a good idea to double-check.

Good luck

Emmanuel

De : MapServer-users  De la part de 
Boubacar Bah
Envoyé : lundi 20 septembre 2021 02:38
À : mapserver-users@lists.osgeo.org
Objet : [mapserver-users] aking help about wms connection with mapserver

This mail has been sent from an external source

good evenin recently i created a mapfile which shoul use a wms server to 
display a map but oce that i run the url below in the browser:
http://localhost/cgi-bin/mapserv?map=C:/ms4w/Apache/htdocs/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=country_bounds&STYLES=&SRS=EPSG:4326&BBOX=-173.537,35.8775,-11.9603,83.8009&WIDTH=400&HEIGHT=300&FORMAT=image/png
they send me an error below:
The requested URL was not found on this server.
this is my layer below :
LAYER
   NAME  modis_nasa
   TYPE  RASTER
   OFFSITE 0 0 0
   STATUS  OFF
   CONNECTIONTYPE   WMS
   CONNECTION  "https://neo.sci.gsfc.nasa.gov/wms/wms?";
   METADATA
"wms_srs" "EPSG:4326"
"wms_name" "MOD_143D_RR"
"wms_server_version" "1.1.1"
"wms_format" "image/jpeg"
   END
   PROJECTION
 "init=EPSG:4326"
   END
END


now i want to know how to fix this problem
thanks


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


[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


[mapserver-users] Float64 on WCS

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

I am new to WCS. While testing WCS 2.0 mode on MapServer 2.18.
I noticed than WCS(1.0/2.0) only supports image mode BYTE, INT16 and FLOAT32 (I 
checked in the source mapwcs.cpp and mapwcs20.cpp). There is no support for 
FLOAT64.
Is there a specific reason for not supporting that? (GDAL supports FLOAT64 very 
well in GeoTiff).

My tests with WCS are from Grib2 data (Float64) to GeoTiff (which only produces 
Float32).

Thank you for your comments.
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