Jachym Cepicky | 27 Jun 12:57 2015
Picon

using sld on the server

Hi all,

is there possibility to style layer using SLD file configured in MapScript? Idea would be, instead of using CLASS for configuration, you would just pass the SLD and things would magically happen (just like it works in GeoServer).

Generating MapFiles from QGIS would than be next logical step ..

I assume, I've missed something and there must be solution for this lying around for couple of years, but did not find anything 

thanks for any hint

Jachym
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
hosain mohammadi | 24 Jun 12:43 2015
Picon

insert value t mapfile from html

how can insert value direction mapfile from html (88,200 ) in bellow code


LAYER
    CONNECTION "host=localhost   dbname=network  user=postgres  password=021555  port=5432"
    CONNECTIONTYPE POSTGIS
    DATA "geom from (SELECT  *  from pgr_dijkstra(
                'SELECT gid as id , source , target , cost FROM tehran' ,
                88, 200, false , false ) a  LEFT JOIN tehran b ON (a.id2 = b.gid)) AS foo using unique gid using srid=4326  "
....

end Layer




_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Picon

libiconv

Hi,

 

I try to install MapServer 7 (beta) on CentOS 7 and I have the following error:

 

[root <at> localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/opt --with-libiconv=/usr/local/lib .. >../configure.out.txt

 

 

[root <at> localhost build]# make

[ 73%] Built target mapserver

Linking C executable legend

libmapserver.so.7.1-dev: undefined reference to `libiconv_open'

libmapserver.so.7.1-dev: undefined reference to `libiconv_close'

libmapserver.so.7.1-dev: undefined reference to `libiconv'

collect2: error: ld returned 1 exit status

make[2]: *** [legend] Error 1

make[1]: *** [CMakeFiles/legend.dir/all] Error 2

make: *** [all] Error 2

 

I tried different switches (--with-libiconv-prefix and –liconv) without success. Any ideas????

 

Thx

Jacques Mérette

Architecte technologique

Division des infrastructures technologiques

Service des infrastructures technologiques appliquées aux opérations

Direction des technologies de l’information

Ministère des Transports du Québec 

Tél: 418-643-5350 # 24685

jacques.merette-c <at> mtq.gouv.qc.ca

 

Boîte commune : Architectes-Technologique._C-DTI <at> mtq.gouv.qc.ca

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
hosain mohammadi | 23 Jun 15:13 2015
Picon

wms

Hi every one

i have a problem according to 
when run URL bellow 



the error apear
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ServiceException code="MissingParameterValue">
msWMSLoadGetMapParams(): WMS server error. Missing required parameter CRS
</ServiceException>
</ServiceExceptionReport>


what is problem 




_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Wim Vanbelle | 22 Jun 17:55 2015
Picon

Re: Mapserver fastcgi process errors / crash

This is the full configuration:

MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=FASTCGI INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE

On 22 June 2015 at 17:55, Wim Vanbelle <wimvanbelle <at> gmail.com> wrote:
Sorry, 6.4.1

Do you need the spawn-fastcgi script too?

On 22 June 2015 at 17:51, Lime, Steve D (MNIT) <Steve.Lime <at> state.mn.us> wrote:

What version?

 

From: mapserver-users-bounces <at> lists.osgeo.org [mailto:mapserver-users-bounces <at> lists.osgeo.org] On Behalf Of Wim Vanbelle
Sent: Monday, June 22, 2015 10:46 AM
To: mapserver-users <at> lists.osgeo.org
Subject: [mapserver-users] Mapserver fastcgi process errors / crash

 

Hi all,

 

Rather urgent production question. If we have some errors with our shapefiles, our fastcgi processes get killed very rapidly. (we believe this is some rapid error protection?)

 

Is there a way to prevent this? We're running nginx + fastcgi mapserver over unix sockets.

 

I'm aware that we need to look into our shapefiles/dbf's but that's not a simple thing because they need to be updated often.

 

Migration to postgres is also not an option.

 

Please let me know if we can tune this somehow. Anyone experience with this?

 

Thanks in advance!

 

best regards,

Wim



_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
William Hudspeth | 22 Jun 17:51 2015
Picon

WMS from netCDF returns white/transparent image

Hello,

I am trying to generate WMS services from layers in a NetCDF file. WCS services already work well...While a WMS call does return an image (ex. PNG), it is all white or transparent, whereas a WCS call to the same layer returns an image with a range of pixel values. I have run gdalinfo on the layer to get the data range, and have tried using the data range to set the PROCESSING DIRECTIVE to scale the output (e.g. PROCESSING "SCALE=311.76470947266 ,423.52941894531 " ). I have also used the SCALE=AUTO directive, but both just return a white image. When I try using WMS on this layer in QGIS, it is correctly projected, but invisible (zoom to extents on the imported WMS layer is correct). Below is the output from gdalinfo to get the original data range, and then the mapfile entry for the layer to see how I have set this up....

gdalinfo NETCDF:"flat_sample.nc":I_lw

Band 1 Block=170x1 Type=Float32, ColorInterp=Undefined

Min=311.765 Max=423.529
Minimum=311.765, Maximum=423.529, Mean=344.247, StdDev=16.599
NoData Value=9.96920996838686905e+36
Metadata:
ipw_desc=incoming thermal (long-wave) radiation
NETCDF_DIM_time=14
NETCDF_VARNAME=I_lw
standard_name=downwelling_longwave_flux_in_air
STATISTICS_MAXIMUM=423.52941894531
STATISTICS_MEAN=344.24709697293
STATISTICS_MINIMUM=311.76470947266
STATISTICS_STDDEV=16.598777681661
units=W m-2

********************************************************************************

LAYER

DATA 'NETCDF:"/geodata/watershed-data/8c/8c18e10f-44b0-4462-bf4f-1c27c984aece/flat_sample.nc":I_lw'
EXTENT -116.142905556 43.7294055556 -116.137583333 43.7326972222
METADATA
"wcs_label" "downwelling_longwave_flux_in_air"
"layer_title" "downwelling_longwave_flux_in_air"
"raster_selected" "yes"
"wms_metadataurl_type" "FGDC-STD-001-1998"
"ows_keywordlist" ""
"wcs_formats" "GEOTIFF_16"
"background" "no"
"wcs_bands_description" "ISNoBal Timesteps 1-16"
"ows_abstract" "incoming thermal (long-wave) radiation"
"wcs_rangeset_name" "Timesteps"
"wms_metadataurl_href" "http://129.24.63.85//apps/vwp/datasets/05e73f4f-51d3-417c-9757-e376b5969a9c/metadata/FGDC-STD-001-1998.xml"
"wcs_bands_values" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
"legend_display" "yes"
"queryable" "no"
"wcs_rangeset_label" "netCDF flat_sample.nc"
"time_sensitive" "no"
"ows_srs" "epsg:26911"
"wcs_bands_name" "Timestep"
"wcs_bands_rangeitem" "_bands"
"ows_title" "incoming thermal (long-wave) radiation""static" "no"
"wms_metadataurl_format" "text/xml"
"wcs_bands_label" "Timestep Number"
"wcs_rangeset_axes" "bands"
"wms_encoding" "UTF-8"
"wcs_enable_request" "*"
"layer_data_units" "W m-2"
"annotation_name" "downwelling_longwave_flux_in_air: 2015-06-19 20:30:29.202558"
END # METADATANAME "downwelling_longwave_flux_in_air"
PROCESSING "CLOSE_CONNECTION=DEFER"
PROCESSING "SCALE=311.76470947266 ,423.52941894531 "
#PROCESSING “SCALE=AUTO”
PROJECTION
"init=epsg:26911"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE RASTER
UNITS METERS
END # LAYER

********************************************************************************

It seems I am missing something here....would appreciate any insight into how to return a valid image in WMS....

Thanks, Bill


_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Wim Vanbelle | 22 Jun 17:45 2015
Picon

Mapserver fastcgi process errors / crash

Hi all,

Rather urgent production question. If we have some errors with our shapefiles, our fastcgi processes get killed very rapidly. (we believe this is some rapid error protection?)

Is there a way to prevent this? We're running nginx + fastcgi mapserver over unix sockets.

I'm aware that we need to look into our shapefiles/dbf's but that's not a simple thing because they need to be updated often.

Migration to postgres is also not an option.

Please let me know if we can tune this somehow. Anyone experience with this?

Thanks in advance!

best regards,
Wim
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
ankur chitranshi | 19 Jun 06:13 2015
Picon

MapScriptException error

while updating map server version 5.2.3 to 6.0.3, i am facing bellow error, 

Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): (mapFiles/khasra.map) in C:\ms4w\Apache\htdocs\bhopalf\index.php on line 26

Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "mapFiles/khasra.map"' in C:\ms4w\Apache\htdocs\bhopalf\index.php:26 Stack trace: #0 C:\ms4w\Apache\htdocs\bhopalf\index.php(26): ms_newMapObj('mapFiles/khasra...') #1 {main} thrown in C:\ms4w\Apache\htdocs\bhopalf\index.php on line 26

kindly help me

thanking you 

--
thanks & regards
Ankur Chitranshi
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Samuel Lapointe | 18 Jun 16:37 2015
Picon

ScribeUI updated to version 1.4

Hello everyone!

I'm developing ScribeUI for the 2015 edition of Google Summer of Code. It's a web utility to create and preview maps, using either the Scribe syntax or the regular Mapserver syntax. 

This update introduces better debugging by displaying error logs and messages in the interface. You can find more details about it on the release page or on the development blog.

The demo has also been updated, so you can try it without installing it by going here. However, the demo is reset every day to prevent it from going too messy. If you're not sure where to start, use this guide to get started!

As always, if you have any questions or troubles, don't hesitate to ask me by email or through an issue on Github. Have a nice day!
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Andrea Peri | 18 Jun 15:44 2015
Picon

The RFC82 (GetMetadata) is supported ?

Hi,
the RFC 82:
http://mapserver.org/development/rfc/ms-rfc-82.html

is supported in mapserver 7.0 ?

I try a request like this:
www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsctr&request=GetMetadata&layer=rt_ctr.10k&service=wms&version=1.3.0

(the server is mapserver 7dev)

The RFC say this request should generate a metadata of all the
services but nothing is does.
Instead it report unsupported request.

Thx.

--

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Kralidis,Tom [Ontario] | 18 Jun 15:24 2015
Picon

WFS 1.1.0 filter behaviour issues

Hi: using 6.4.1. via UbuntuGIS, I'm getting unexpected behaviour when
working with WFS 1.0.0 and various Filter combinations.

I've attempted to summarize with test cases/output here:

https://gist.github.com/tomkralidis/637241066b4719c04dec

Not sure whether there is an issue with the WFS Filter syntax, or if
there is a workaround that can be applied, But it looks like for case 1,
neither the  where clause or limit/offset is not being applied to the
underlying SQL query.

Any ideas?

Thanks

..Tom
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Gmane