Gery | 20 Oct 11:18 2014
Picon

installing mapserver in cygwin - regex.c problem

Hi,

This is my first time installing mapserver in cygwin, but I'm a quite old
user of both cygwin and mapserver (but still young =D ).

The thing is that I'm getting a regex issue after doing cmake in the build
directory inside the mapserver-6.4.1 directory (after doing tar -zxvf
mapserver-6.4.1.tar.gz, etc, etc). My cygwin installation meets all the
requirements afaik to build mapserver. I'm not sure, though, if regex.h is
causing a problem. This is what I get after running cmake:

--
Gery <at> gery /opt/mapserver/mapserver-6.4.1/build
$ cmake .. -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_SOS=1 -DWITH_KML=1
-DWITH_PHP=1 -DWITH_PERL=1 -DWITH_PYTHON=1 -DWITH_GD=1 -DWITH_GDAL=1
-DCMAKE_PREFIX_PATH="/opt/gdal/gdal-1.11.0" -DWITH_OGR=1 -DWITH_PROJ=1
-DCMAKE_LEGACY_CYGWIN_WIN32=1 -DWITH_ICONV=0 -DWITH_EXEMPI=0 -DWITH_MYSQL=0
-- Defining WIN32 under Cygwin due to CMAKE_LEGACY_CYGWIN_WIN32
-- /usr/include/php/main
-- Found PHP5-Version 5.5.16 (using /usr/bin/php-config)
-- * Summary of configured options for this build
--  * Mandatory components
--   * png: /usr/lib/libpng.dll.a
--   * jpeg: /usr/lib/libjpeg.dll.a
--   * freetype: /usr/lib/libfreetype.dll.a
--  * Optional components
--   * GDAL: /opt/gdal/gdal-1.11.0/libgdal.a
--   * OGR: /opt/gdal/gdal-1.11.0/libgdal.a
--   * GD: /usr/lib/libgd.dll.a
--   * GIF: /usr/lib/libgif.dll.a
(Continue reading)

bag20 | 20 Oct 08:44 2014
Picon

Problem during installation !

Hi, I am using ubuntu 14 trusty OS and I am trying to install mapserver and having problem related to cmake. I am having cmake in my OS but the script provided in mapserver installation documentation is not working fine. If it is possible please provide me step by step procedure for installation of mapserver . I was following the documentation for installation provied by Mapserver but I am not getting how to install through that. I am newbie in linux so please help me regarding this. Thanks !

View this message in context: Problem during installation !
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
scott159 | 20 Oct 08:22 2014
Picon

- Tile index

Hi,

I transfer this question to mapserver-users :
I want to use mapserver with spatial index in postgres/postgis. The mapfile looks like :

......

          LAYER
                NAME "footprint"
                STATUS ON
                TYPE POLYGON
                EXTENT -180 -90 180 90
                CONNECTIONTYPE postgis
                CONNECTION "dbname=test host=X.X.X.X port=5432 user='usr' password='pwd'"        
                DATA "the_geom FROM view USING UNIQUE id USING srid=4326"
                FILTER "the_geom is not null"
                PROCESSING "CLOSE_CONNECTION=DEFER"                
                OPACITY 100
                PROJECTION
                        "init=epsg:4326"
                END
                CLASS
                        NAME 'footprint1'
                        STYLE
                                WIDTH 2
                                OUTLINECOLOR 0 0 0
                                OPACITY 10
                        END
                END
                CLASS
                        NAME 'footprint2'
                        STYLE
                                WIDTH 2
                                OUTLINECOLOR 0 0 0
                        END
                END
        END

        LAYER
                DEBUG 3
                NAME "raster"
                STATUS ON
                TYPE RASTER
                OFFSITE 0 0 0
                OPACITY 100
                PROJECTION
                        "init=epsg:4326"
                END
                TILEITEM "the_path"
                TILEINDEX "footprint"
        END
......

With 6.4.1, everything is ok, raster layer is visible and there is no error in log file.
But when I try to use this mapfile with 6.5-dev on x64 wheezy, only footprint layer is visible. The raster
layer is not visible and it seems non item index is defined cf log file below :

......
msDrawRasterLayerLow(raster): entering.
msEvalExpression(): General error message. Cannot evaluate expression, no item index defined.
......

How to defined item index with 6.5-dev ?

Cheers

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

Andrea Peri | 19 Oct 10:39 2014
Picon

Trouble with last dev in the GetFeatureInfo.

Hi,
I upgrade to the last dev of mapserver.

After this, I'm having some troubles when go to do Identify on a layer
with a GetFeatureInfo.

Now I'm havig this error:

[Sun Oct 19 10:32:25 2014].523176 msEvalExpression(): General error
message. Cannot evaluate expression, no item index defined.

I'm using a postgis to host the layer and this is the setting:

    CONNECTIONTYPE POSTGIS
    CONNECTION "host=localhost dbname=test user=test password=test port=5432"
    DATA "geometry from mytest.layer1 using unique gid srid=25832"
    FILTER "(FOGLIO like '%idtpn%')"
    VALIDATION
      'idtpn' '^[a-zA-Z0-9\-_]+$'
      'default_idtpn' '%'
    END

This setting work for me before, so I guess there is some change to do
in mapfile settings, but I don't understand what.

Any hints ?

Thx,

--

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
William Hudspeth | 19 Oct 02:28 2014
Picon

Mapserv executable and path on Ubuntu linux

Hello,

I have written my first mapfile, and I am trying to view a layer. I am 
using a time-enabled raster layer indexed in Postgis. I am a little 
confused about building the correct mapserv URL and referencing my 
mapfile. I am running Ubuntu linux 14.01, and trying to view my map from 
localhost. I have a path like this where I have the mapfile:

/var/www/pm25/public_html

The permissions on the mapfile are 755 with the owner myself, and the 
group is www-data.

I am not sure how to construct a URL to point to mapserv and the mapfile 
to see a map....

Thanks

--

-- 
William Hudspeth, PhD
Analyst-Programmer III
Earth Data Analysis Center
MSC01 1110, Bandelier Hall West 212
1 University of New Mexico
Albuquerque, NM 87131-0001
Tel: (505) 277-3622, ext. 249
Email: bhudspeth <at> edac.unm.edu

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

Sean DiSanti | 17 Oct 19:04 2014

Converting a working mapserver request to a mapcache request

I have a page using esri maps that currently requests pre-generated
overlay images from a mapserver. That part is working perfectly, but now
we're looking to pass the requests through mapcache, and I'm having
trouble getting the requested tile. Any help would be greatly appreciated.
The working request to mapserver is:

http://dev.domain.com/cgi-bin/mapserv?map=/map/ahps/precip.map&shape_path=2014/10/16/nws_precip_1day_observed_20141016&mode=tile&tilemode=gmap&service=WMS&version=1.1.1&request=GetMap&Styles=default&SRS=EPSG:102100&width=256&height=256&format=image/PNG&TRANSPARENT=TRUE&layers=conus-raster&dpi=120&tile=8+12+5

and it is correctly handled by this mapfile:

MAP
	NAME "combined"
	STATUS ON

	SIZE 15000 7785
	SYMBOLSET "/shp/ahps/symbols/symbols35.sym"
	EXTENT -180 -90 180 90
	UNITS DD
	SHAPEPATH "/SHP"
	IMAGECOLOR 0 0 0
	TRANSPARENT TRUE

	#
	# Start of web interface definition
	#
	WEB
		METADATA
			"ows_enable_request" "*"
			"wms_transparent" "TRUE"
		END
	END
	#
	# Start of layer definitions
	#
	LAYER
		NAME 'conus-raster'
		TYPE RASTER
		STATUS DEFAULT
		PROJECTION
                	"init=epsg:4326"
        	END
		VALIDATION
                        "shape_path"
"^[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/nws_precip_.*_[a-zA-Z]+_[0-9]{8}"
                END
		DATA "/shp/ahps/%shape_path%_conus.png"
	END

In building the mapcache.xml file, I added a grid, source and tileset:

 <grid name="esri">
            <metadata>
            <title>GoogleMapsCompatible</title>
            </metadata>
            <extent>-180 -90 180 90</extent>
            <srs>EPSG:4326</srs>
            <srsalias>EPSG:102100</srsalias>
            <size>256 256</size>
            <units>m</units>
            <resolutions>156543.0339280410 78271.51696402048
39135.75848201023 19567.87924100512 9783.939620502561
4891.969810251280 2445.984905125640 1222.992452562820
611.4962262814100 305.7481131407048 152.8740565703525
76.43702828517624 38.21851414258813 19.10925707129406
9.554628535647032 4.777314267823516 2.388657133911758
1.194328566955879 0.5971642834779395</resolutions>
    </grid>

<source name="precip" type="wms">
        <getmap>
            <params>
                <VERSION>1.1.1</VERSION>
                <TRANSPARENT>TRUE</TRANSPARENT>
                <FORMAT>image/png</FORMAT>
                <LAYERS>conus-raster</LAYERS>
                <MAP>/map/ahps/precip.map</MAP>
                <mode>tile</mode>
                <tilemode>gmap</tilemode>
                <WIDTH>256</WIDTH>
                <HEIGHT>256</HEIGHT>
            </params>
        </getmap>
        <http>
            <url>http://mapserver.domain.com</url>
        </http>
    </source>

<tileset name="precip_tileset">
        <source>precip</source>
        <cache>disk</cache>
        <grid>esri</grid>
        <format>PNG</format>
        <metatile>5 5</metatile>
        <metabuffer>10</metabuffer>
        <expires>1</expires>
        <autoexpire>1</autoexpire>
        <dimensions>
            <dimension type="regex" name="shape_path"
default="2014/10/10/nws_precip_last180days_departure_20141010">^[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/nws_precip_.*_[a-zA-Z]+_[0-9]{8}$</dimension>
            <dimension type="regex" name="tile"
default="17+25+6">^\d{1,3}\s\d{1,3}\s\d{1,3}$</dimension>
        </dimensions>
    </tileset>

I added the tile dimension because mapserver was complaining that the tile
dimensions were not being passed, and then even after adding it, I was
getting errors that the wrong number of dimensions were being passed.  I
figured that was being caused because mapserver is expecting the value as
'tile=x+y+z' but mapcache is parsing it first and sending along 'tile=x y
z'. This was confirmed by removing the tile parameter from the call so the
default value '17+25+6' was successfully used.

I'm sorry for the book here, but I've completely run out of ideas to get
mapcache to return the same tile and figured giving too much info would be
preferably to not giving enough.  Thanks in advance for any suggestions

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

Rahkonen Jukka (Tike | 17 Oct 09:19 2014
Picon

Re: [mapserver-dev] - Tile index

Hi,

I would say that a question like this belongs to mapserver-users list. If discussion leads to conclusion
that there is a bug in Mapserver the next step would be to create a ticket to github or continue discussion
about how to fix it best on mapserver-dev.

My guess is that you do not use the same mapfiles with your 6.4.1 and 6.5-dev on x64 wheezy.
The tileindex should be found from layer "panchro" but the mapfile in your message does not define that layer.

> TILEITEM "the_path"
> TILEINDEX "panchro"

-Jukka Rahkonen-

scott159 wrote:

> Hi,
> 
> I want to use mapserver with spatial index in postgres/postgis. The mapfile looks
> like :
> 
> ......
> 
>   	LAYER
> 		NAME "footprint"
> 		STATUS ON
> 		TYPE POLYGON
> 		EXTENT -180 -90 180 90
> 		CONNECTIONTYPE postgis
> 		CONNECTION "dbname=test host=X.X.X.X
> port=5432 user='usr' password='pwd'"
> 		DATA "the_geom FROM view USING UNIQUE id
> USING srid=4326"
> 		FILTER "the_geom is not null"
> 		PROCESSING "CLOSE_CONNECTION=DEFER"
> 
> 		OPACITY 100
> 		PROJECTION
> 			"init=epsg:4326"
> 		END
> 		CLASS
> 			NAME 'footprint1'
> 			STYLE
> 				WIDTH 2
> 				OUTLINECOLOR 0 0
> 0
> 				OPACITY 10
> 			END
> 		END
> 		CLASS
> 			NAME 'footprint2'
> 			STYLE
> 				WIDTH 2
> 				OUTLINECOLOR 0 0
> 0
> 			END
> 		END
> 	END
> 
> 	LAYER
> 		DEBUG 3
> 		NAME "raster"
> 		STATUS ON
> 		TYPE RASTER
> 		OFFSITE 0 0 0
> 		OPACITY 100
> 		PROJECTION
> 			"init=epsg:4326"
> 		END
> 		TILEITEM "the_path"
> 		TILEINDEX "panchro"
> 	END
> ......
> 
> With 6.4.1, everything is ok, raster layer is visible and there is no error in log file.
> But when I try to use this mapfile with 6.5-dev on x64 wheezy, only footprint
> layer is visible. The raster layer is not visible and it seems non item index is
> defined cf log file below :
> 
> ......
> msDrawRasterLayerLow(raster): entering.
> msEvalExpression(): General error message. Cannot evaluate expression, no
> item index defined.
> ......
> 
> How to defined item index with 6.5-dev ?
> 
> Thanks a lot
> 
> 
> 
> 
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev <at> lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Francesco Palermo | 16 Oct 17:04 2014
Picon

WMS rendering

Hello,
I'm experimenting the use of Mapserver as WMS and I'm encountering some 
problems on map rendering. I'm using a shapefile as a map source and 
it's a map of points (generated by a csv using ogr2ogr - Could I use 
directly csv with Mapserver? I don't know). I can't get the rendering of 
this map using for example QGIS or this URL in the browser (which I hope 
it's correct):
http://localhost/cgi-bin/mapserv?map=/home/francesco/shared/mapserver/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&BBOX=9.2990,43.0105,9.4894,43.0524&WIDTH=500&HEIGHT=300&FORMAT=image/png&LAYERS=test&

This is the mapfile:
MAP
     NAME "test"
     STATUS ON
     SIZE 500 300
     IMAGETYPE PNG
     EXTENT 9.2990 43.0105 9.4894 43.0524
     UNITS METERS
     DEBUG 5
     PROJECTION
            "init=epsg:4269"
     END
     WEB
         TEMPLATE "template.html"
         IMAGEPATH "/var/www/html/tmp/"
         IMAGEURL "/tmp/"
         METADATA
             "wms_title"           "WMS Demo Server"
             "wms_onlineresource" "http://localhost/cgi-bin/mapserv?"
             "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"
             "wms_enable_request" "*"
         END
     END
     #IMAGECOLOR 255 255 255
     TRANSPARENT ON
     SHAPEPATH "oilspill/"
     OUTPUTFORMAT
       NAME "png"
       DRIVER AGG/PNG
       MIMETYPE "image/png"
       IMAGEMODE RGB
       EXTENSION "png"
       FORMATOPTION "GAMMA=0.75"
     END
     SYMBOL
       NAME "square"
       TYPE vector
       POINTS
         0 0
         0 1
         1 1
         1 0
         0 0
       END
       FILLED true
       ANCHORPOINT 0.5 0.5
     END
     LAYER
       NAME "test"
       TYPE POINT
       STATUS DEFAULT
           DATA "timestep24"
       DEBUG 5
       SIZEUNITS meters
       PROJECTION
            "init=epsg:4269"
       END
       METADATA
         "wms_title"    "test"
       END
       CLASSITEM "weight"
       CLASS
           STYLE
               COLOR "#1014FF"
               SYMBOL "square"
               SIZE 0.0019
           END
       END
     END
END

Any suggestions? Are there any errors in the mapfile? Or am I wrong in 
the procedure?

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

Re: [EXTERNAL] Re: Symbols in KML outout

You also have to make sure that the IMAGEURL is a full web URL not just a
path.

Mike

On 10/16/14, 8:56 AM, "Eichner, Andreas - SID"
<Andreas.Eichner <at> sid.sachsen.de> wrote:

>Never used it but it seems the KML driver creates PNG images on the fly
>and returns them as href. This seems to be independent of the type of
>symbol. So you should make sure MS is able to write those images into
>/tmp or $MS_TEMPPATH. The "(null)" indicates that it was unable to do so.
>
>HTH
>________________________________________
>Von: mapserver-users-bounces <at> lists.osgeo.org
>[mapserver-users-bounces <at> lists.osgeo.org]&quot; im Auftrag von
>&quot;Peter Hopfgartner [peter.hopfgartner <at> r3-gis.com]
>Gesendet: Donnerstag, 16. Oktober 2014 10:09
>An: mapserver-users <at> lists.osgeo.org
>Betreff: Re: [mapserver-users] Symbols in KML outout
>
>Just as a quick fix, I'd propose to drop the href node if no reasonable
>value is given. Anything more elaborate can be added later on. Comments?
>
>Peter
>
>On 10/15/2014 11:57 AM, Peter Hopfgartner wrote:
>> From http://mapserver.org/output/kml_output.html#id2, it should be
>> possible to have icons for sysmbols. The pixmap of the ison should be
>> referenced in the href node.
>> In my output, the href ode looks like:
>>
>>     <href>(null)</href>
>>
>> Is there anything I missed?
>>
>> Regards,
>>
>> Peter
>>
>
>
>--
>Peter Hopfgartner
>R3 GIS Srl - GmbH
>Via Johann Kravogl-Str. 2
>I-39012 Meran/Merano (BZ)
>web  : www.r3-gis.com
>mail : peter.hopfgartner <at> r3-gis.com
>phone: +39 0473 494949
>fax  : +39 0473 069902
>
>ATTENZIONE! Le informazioni contenute nella presente e-mail e nei
>documenti eventualmente allegati sono confidenziali. La loro diffusione,
>distribuzione e/o riproduzione da parte di terzi, senza autorizzazione
>del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di
>ricezione per errore, Vogliate immediatamente informare il mittente del
>messaggio e distruggere la e-mail.
>
>ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten
>beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung
>und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders
>verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie
>diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns
>umgehend zu informieren und anschließend die Mitteilung zu vernichten.
>
>WARNING! This e-mail may contain confidential and/or privileged
>information. If you are not the intended recipient (or have received this
>e-mail in error) please notify the sender immediately and destroy this
>e-mail. Any unauthorised copying, disclosure or distribution of the
>material in this e-mail is strictly forbidden and could be against the
>law (D. Lgs. 196/2003)
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users <at> lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>_______________________________________________
>mapserver-users mailing list
>mapserver-users <at> lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Peter Hopfgartner | 15 Oct 11:57 2014

Symbols in KML outout

 From http://mapserver.org/output/kml_output.html#id2, it should be 
possible to have icons for sysmbols. The pixmap of the ison should be 
referenced in the href node.
In my output, the href ode looks like:

     <href>(null)</href>

Is there anything I missed?

Regards,

Peter

--

-- 
Peter Hopfgartner
web  : http://www.r3-gis.com

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

Bill Hudspeth | 14 Oct 21:31 2014
Picon

Can't find mapserv.exe

Hello,

I installed mapserver 6.4.1 in Ubuntu 14.0.1 using synaptic package manager. I know it is installed on my
system. When I run

mapserv -v, I get:

MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

When I search for the file (mapserv.exe) with locate or find, it is not found. I want to place a copy in my
cgi-bin, as follows:

/var/www/website/public_html/cgi-bin ....

What am I missing?

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


Gmane