luca paganotti | 26 Apr 16:07 2015
Picon

MapServer on centos 7

Hi all, I'm in the need of installing mapserver and pmapper on a centos 7 box. I googled for a suitable repo, but the only one I was able to find was on elgis and is stucked at centos 6. Is there anybody who knows about a centos 7 one?

I also searched for building instructions but none of what I've found is targeted to centos 7. Can someone, please, direct me to right source of info?

I'm not so willing to downgrade to centos 6.

Thank you for any answer.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
alok mathur | 24 Apr 17:56 2015
Picon

KML Multigeometry

Hi,

Need help!!  I have a kml with multigeometry placemark in it as shown below. Also I have create a map file corresponding to this kml as shown. 
I am unable to view the data on map, there is no error coming. Please let me know what wrong i am doing. 

MAP
---------

LAYER
GROUP "default"
NAME "layer0"
DATA "SELECT * FROM 'TestFolder' WHERE FID=0 AND OGR_GEOMETRY='LINESTRING'"
METADATA
"wms_title" "Layer_0"
"gml_geometries" "geom"
"gml_include_items" "all"
"wms_include_items" "all"
"wms_feature_info_mime_type" "text/plain"
"gml_geom_type" "line"
END
STATUS DEFAULT
TEMPLATE queryable
TYPE LINE
CONNECTIONTYPE OGR
CONNECTION "test.kml"
CLASS
NAME "class"
STYLE
WIDTH 10
COLOR 0 0 255
END #style end
END #class end
END #layerend
END

KML
----------
<?xml version="1.0" encoding="UTF-8"?>

<Document>
<Folder>
 <name>TestFolder</name>
<Placemark>
  <name>SF Marina Harbor Master</name>
  <visibility>0</visibility>
  <MultiGeometry>
    <LineString>
      <!-- north wall -->
      <coordinates>
      -71.460218,42.901764,1 -71.460193,42.901815,1 -71.460095,42.902058,1 -71.46002799999999,42.902381,1 -71.460009,42.902723,1 -71.46001699999999,42.903507,1 -71.45998899999999,42.904164,1 -71.45995000000001,42.904524,1 -71.45985400000001,42.905083,1 -71.459458,42.906672,1 -71.459121,42.907851,1 -71.45884100000001,42.908847,1 -71.45876300000001,42.909122,1
      </coordinates>
    </LineString>
    <LineString>
      <!-- south wall -->
      <coordinates>
        -122.4425509770566,37.80662588061205,0
        -122.4428340530617,37.8065999493009,0
      </coordinates>
    </LineString>
    <Point>
        <coordinates>-122.4428340530617,37.8065999493009,0</coordinates>
    </Point>
  </MultiGeometry>
</Placemark>
</Folder>
</Document>
</kml>



Thanks!

--
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Vladimiro Bellini | 23 Apr 15:33 2015
Picon

ows_allowed_ip_list / ows_denied_ip_list not working

Hi.

i was testing "ows_denied_ip_list" or allowed ip list on my 6.4.1 mapserver and it does not work at all.

./mapserv -v MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE METADATA #inside top mapfile metadata "ows_denied_ip_list" "*" #(other metadata..) END

even blocking "*" (all ip's) it doesnt work,

i always receive a GetMap response using wms
..

i can still see my request (cgi-bin,wms,getmap, see the full png, no denied at all...) why?

:S


Thanks,


Vladimiro Bellini

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
vladimirbellini | 23 Apr 15:14 2015
Picon

ows_allowed_ip_list / ows_denied_ip_list not working

Hi.

i was testing "ows_denied_ip_list" or allowed ip list on my 6.4.1 mapserver
and it does not work at all.

 ./mapserv -v
MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

METADATA
#inside top mapfile metadata

        "ows_denied_ip_list" "*"
#(other metadata..)
END

even blocking "*" (all ip's) it doesnt work,

i always receive a GetMap response using wms
..

i can still see my request (cgi-bin,wms,getmap, see the full png, no denied
at all...)
why?

:S

<http://osgeo-org.1560.x6.nabble.com/file/n5202661/8d9c16d4-e8f3-11e4-92c0-a3c862cac09f.jpg> 

Thanks,

Vladimiro Bellini

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-tp5202661.html
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

mapserver | 23 Apr 09:45 2015
Picon

Legend difference in 5.6.1 and 6.4.1

I am migrating my mapserver application from 5.6.1 to 6.4.1 and have observed a 
difference in the created legend images, i.e. truncating of class names - which 
makes the legend image unusable in the end

The legend definition on both platforms is as such:

LEGEND
    KEYSIZE 22 12
    LABEL
      TYPE TRUETYPE
      FONT arial
      SIZE 8
      COLOR 0 0 0
      WRAP " <at> "
    END
    STATUS ON
END # legend

Mapfile: Umlauts in html-encoding like
   CLASS NAME "&Ouml;ffentlicher Tr&auml;ger"

I have to use a truetype font, otherwise I can't render the German umlauts.

mapserver 5.6.1 gives this result:

http://maps.muenchen.de/wms-2/rgu/behindertenheime?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=l0&format=image/png&STYLE=default

and mapserver 6.4.1 gives this one:

http://kronos.muenchen.de/wms/rgu/behindertenheime?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=l0&format=image/png&STYLE=default

Have I missed something in the migration guide? Or are there parameter available 
to increase the legend size?

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

Marco Afonso | 22 Apr 16:14 2015
Picon

Fwd: MapFile Generator


Hi,

MapIgniter is a web application that also has as its main purpose to create a web interface to configure mapfiles for mapserver, although, it is based on CodeIgniter and RedBeanPHP, which was the best approuch at that time but now it is not.

This is a very good idea and having it as a standalone PHP application is not bad but having it as a "module/extension" for a PHP framework/cms would be even better.

I'm interested (as a developer) in a project like this but as a module or extension for a well-known PHP framework/cms ie. Laravel or October CMS.

Ideally, the best approuch would be to have 3 repos:
1. Core repo (abstract, independent)
2. As standalone application (requires repo 1, the same as yours...)
3. As Extension for ie. Laravel (requires 1)

What would you think?

Keep on! :)


2015-04-22 13:29 GMT+01:00 Geo-6 <support <at> geo6.be>:

Hi everyone,

 

I’m developing a web application (PHP) to read, edit, write and preview MapServer mapfiles.

 

This application uses “PHP MapScript” (http://www.mapserver.org/mapscript/php/) but if “PHP MapScript” is not available or enable, it uses an internal library to read/write mapfiles.

 

You can find the application on GitHub : https://github.com/jbelien/MapFile-Generator

Use with caution, it’s still an alpha release.

 

Feel free to test it, criticize it, suggest any idea or improvement, or contribute J

I hope you’ll like it and find it useful.

 

Do not hesitate to contact me if you have any question/suggestion (preferably using GitHub issues : https://github.com/jbelien/MapFile-Generator/issues)

 

Have a great day.

 

Jonathan Beliën

Geo-6

 


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



--
Regards,
Marco Afonso




--
Regards,
Marco Afonso

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Geo-6 | 22 Apr 14:29 2015
Picon

MapFile Generator

Hi everyone,

 

I’m developing a web application (PHP) to read, edit, write and preview MapServer mapfiles.

 

This application uses “PHP MapScript” (http://www.mapserver.org/mapscript/php/) but if “PHP MapScript” is not available or enable, it uses an internal library to read/write mapfiles.

 

You can find the application on GitHub : https://github.com/jbelien/MapFile-Generator

Use with caution, it’s still an alpha release.

 

Feel free to test it, criticize it, suggest any idea or improvement, or contribute J

I hope you’ll like it and find it useful.

 

Do not hesitate to contact me if you have any question/suggestion (preferably using GitHub issues : https://github.com/jbelien/MapFile-Generator/issues)

 

Have a great day.

 

Jonathan Beliën

Geo-6

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
alok mathur | 21 Apr 18:02 2015
Picon

KML Parsing

I have a KML with two folders with same name. How should i show this data using mapserver.

Im using DATA select * from <foldername> where fid =1;

Please suggest me how to do this 

--
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Travis Kirstine | 21 Apr 16:37 2015

memcache and mapcache

I have a issue with memcache and mapcache.

[root <at> wmts2 mapcache]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 1058 of /etc/httpd/conf/httpd.conf:
failed to add cache "memcache": memcache support is not available on this build
                                                           [FAILED]


Any ideas??




--

Travis Kirstine, Web Development Supervisor
t 905‑477‑3600 x 301 | m 905‑534‑4798 | tkirstine <at> firstbasesolution.com

First Base Solutions Inc.
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
t 905‑477‑3600 | f 905‑477‑0892 | www.firstbasesolutions.com

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Basques, Bob (CI-StPaul | 20 Apr 23:09 2015
Picon
Picon

Background transparency vs feature (polygon) transparency.

All,

 

So I used to be able (MS6.1 and older?) to just define a color and then set transparency to ON, and that color would be transparent.  It didn’t matter if it was the background or a feature that was drawn in that color, it just turned transparent.

 

I have a slightly different use case than most users as.  I want to maintain a background color for the image, but filter out polygons (parcels) to be transparent in color (not opaque) as an overlay.  This is to represent all Public right-of-way areas, or rather, areas that are NOT parcels.

 

I’ve been trying for a couple of days now on and off to make the new methods replicate this capability, to little effect.  All the new tools assume a transparency is going to be applied across the whole image background.  I need to be able to only poke holes in the background where there is a parcel polygon.

 

Is there a way to make this work like in the good old days (I mean good old versions ??  :c) of Mapsever??

 

One suggestion I did find that would likely work, was the use a mask, but then I need a larger bounding area to contain the mask (Is there a way of defining an edgeless mask??).  Is this the track I should be persuing?  I could use our City Boundary for this as a possible solution.  Also, what’s all the stuff about a COMPOSITE block, looks like this is the future of masking type operations in the future.

 

Thanks

 

Bobb

 

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
alok mathur | 15 Apr 18:58 2015
Picon

Kml + mapserver

Hi Lars,

I have a KML with multiple placemarks in it. Now i want to read each Placemark and make it a different layer in mapfile.

Is it a right way to do so and also in case of multigeometry how to handle that with fid.

Let me know in case of any concern.

for eg

KML
----------
<Folder>
<name>Fibertech
<Placemark>
<name>P1</name>
...

</Placemark>
<Placemark>
<name>P2</name>
...

</Placemark>
</Folder>
MAP file
-----------------

LAYER
NAME ""
...
DATA "select * from "Fibertech" where fid =1;
..
END

LAYER
NAME ""
...
DATA "select * from "Fibertech" where fid =2;
..
END

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

Gmane