Kris Spring | 27 Jun 23:11 2014

Installing MapServer on Windows

Howdy,

I've got a dump of a NASA World Wind map database and I'm trying to setup a standalone map environment. Not sure if anyone has done this before, but the documentation isn't exactly up to date or complete.

Here's my setup:
Windows 7 64-bit
MapServer 6.4.1

I've installed MapServer and have modified IIS7 so that I can run mapserv.exe.  The NASA World Wind comes with a .map file and basically everything that I need. When I try to bring up the .map file I get the following error:

Sample url:  localhost/mapserver/mapserv.exe?map=<path>/nasaww.map&request=getacpabilities&service=wms

msProcessProjection(): Projection library error. proj error "Permission denied" for "init=epsg:4326"

I've tried looking at permissions and opening everything up just to see if I can get it to work, but no dice.  Anyone have any ideas?

Thanks,
Kris
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Mark Korver | 27 Jun 20:57 2014
Picon

large # of GeoTiffs mapfile/index strategy

Hi Experts,
I need a little advice on how to do lots of aerial image GeoTiffs quickly. I have a large region with many GeoTiffs covering 9 UTM zones. Typically I would put together a map file with layers per utm zone and use shapefile index to point at the GeoTiffs. I know that declaring the extent per layer is important when you have a lot of layers. The GeoTiffs are RGB, internally tiled, and jpeg compressed. They are also about 20-30MB in size.

My question is, has anyone done any testing between doing this via shapefile index vs GDAL .vrt files? Which would perform faster?
My current setup is using Mapserver behind nginx in fastcgi mode.
Thanks for any help on this.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Tom | 27 Jun 16:16 2014
Picon

Include data extents in WFS layer

Hi folks,

 

Do you know if it is possible to include the extents of the data in a WFS response?  If the BBOX I request only contains a few features , I would like to zoom my map to their bounds.  I can calculate this on the client side, but I would prefer to have Mapserver feed me that info.

 

Thanks!!

 

Tom

 

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Dietmar Stolz | 27 Jun 15:35 2014
Picon

KML output with blank point bitmaps

Dear list,

my kml output basically works.
Everything works fine with line and polygon type, I get correct kml files.
Point layers works also but mapserver generated blank png's.

The bitmap exist in the right directory with the right size.
The url path in the kml file is right.
I can see the kml point layer in the gis, the points have tooltips and 
are clickable.
The bitmaps have 24 bpp.
Pixmap or vector layer symbols makes no difference.

Debug 5 shows no error and no kml specific information.

MapServer version 6.4.1 on windows 7 64 bit

Any ideas?

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

Stefanos Anastasiou | 27 Jun 15:29 2014
Picon

Permission settings on htdcos

Hello list..!

I'm just trying to load a simple shapefile in the browser. Both mapfile and template are located in /home/mapdata. When I try to browse:  127.0.0.1/cgi-bin/mapserv?map=/home/mapdata/2.map&mode=browse I get the error that says:  "msSaveImage(): Unable to access file. Failed to create output file".

I presume that it has to do with the permission settings in tmp folder in htdcocs. As far as I know it's not a good idea giving permission 666 or 777 to htdocs.  So should I handle this ? 
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Oliver Christen | 27 Jun 09:27 2014

symbol rotation follow map rotation ?

dear list

Observed using mapserver 6.0.1, I have noticed that symbol rotation 
doesn't seem to follow map rotation, ie. the symbols keep the same 
absolute angle whatever the map angle is.
I have the feeling this is a current limitation of Mapserver, as it 
doesn't know if the symbol angle is an absolute value (independent of 
the map angle) or relative (map angle should be added to symbol angle).

example here:

no map rotation (signs symbols with angle aligning them with the streets):
http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&SRS=EPSG%3A21781

with map rotation (signs symbols have kept their initial angle and are 
not aligned
anymore):
http://map-preprod.morges.ch/preprod/wsgi/mapserv_proxy?BBOX=527784.2%2C151341.33%2C527831.44%2C151402.27&HEIGHT=2438&WIDTH=1890&map_resolution=254&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&SERVICE=WMS&map_angle=59.99999999999999&format_options=dpi%3A254&LAYERS=vd_cad_tpr_cs_s_coul_grl%2Cvd_cad_tpr_baths_s_coul_grl%2Cvd_cad_tpr_odl_l_coul_grl%2Cmf_cad_no_lieudit_label_coul%2Cmf_cad_ab_nom_localisation_label_coul_grl%2Cpri_25_a%2Cgeb_25_a%2Ceis_25_l_modif%2Cstr_25_l%2Coft_tpr_swissnames%2Cmf_sig_signal_physique&REQUEST=GetMap&STYLES=&angle=59.99999999999999&SRS=EPSG%3A21781 

could someone confirm or infirm?

In my opinion I would prefer a relative angle calculation by default, 
but that's just me :)

thanks for reading
kind regards
Oliver

--

-- 
Camptocamp SA
Oliver Christen
PSE A, EPFL
CH-1015 Lausanne

www.camptocamp.com

+41 21 619 10 23 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)

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

Carlos Ruiz | 26 Jun 17:24 2014
Picon

Re: color attribute question

To achieve more flexibility as you want, you have to code a function with PL/pgSQL in PostgreSQL or with
PHP/Python/Java/C# with Mapscript to define which is the base color (red, green, blue, yellow ...) and
then to calculate the percent in the right RGB channel.

Cheers

Mtro. Carlos Ruiz

--------------------------------------------
On Mon, 6/23/14, Do Wi <dowi84 <at> gmail.com> wrote:

 Subject: Re: [mapserver-users] color attribute question
 To: "Carlos Ruiz" <boolean10001 <at> yahoo.com>
 Date: Monday, June 23, 2014, 2:56 PM

 thanks allot!
 Steve and another user here mentioned this path
 and it did work!only problem is that it cannot be
 changed later if for example the user chooses a blue
 gradient.

 how will i go about doing it with
 mapscript?
 maybe it relates to my question herehttp://gis.stackexchange.com/questions/102862/when-to-choose-mapscript-over-mapfile-or-vice-versa

 
 :-)
 thanks allot!dovi

 On Mon, Jun 23, 2014
 at 6:13 PM, Carlos Ruiz <boolean10001 <at> yahoo.com>
 wrote:

 
 Do,
 If
 you want to do this without using mapscript, you can pull
 the gradient calculation as an attribute from your data
 table.

 
 ALTER TABLE mytable ADD COLUMN gradient_color
 VARCHAR;
 UPTATE mytable SET gradient_color = floor(gradient *
 255)::text || ' 0 0';

 Cheers

  Mtro. Carlos Ruiz

  

 On Monday, June 23, 2014 4:59 PM, "Lime, Steve D
 (MNIT)" <Steve.Lime <at> state.mn.us>
 wrote:

     

  

 You can compute a color
 string using PostgreSQL string functions: 
    
   SELECT percentage ||
 ‘ 0 0’ AS color FROM … 
    
 Steve 
    
 From: mapserver-users-bounces <at> lists.osgeo.org
 [mailto:mapserver-users-bounces <at> lists.osgeo.org]
 On Behalf Of Do Wi

 Sent: Sunday, June 22, 2014 3:50 PM

 To: mapserver-users <at> lists.osgeo.org

 Subject: [mapserver-users] color attribute
 question 
    

 hi! 

    

 
 i have this
 scenario: 

 
 i have a column in my
 postgis table which contains a double representing a
 percentage. 

 
    

 
 i want to color my
 polygons in a gradient fashion based on that
 number. 

 
    

 
 the docs states three
 ways to specify color: 

 
 1. three [1-255]
 numbers 

 
 2. hex
 string 

 
 3.
 [attribute] 

 
    

 
 but the attribute must
 be a string by itself in the same format as options 1 or
 2. 

 
    

 
 how can i achieve
 something like  

 
    

 
 COLOR [percentage]*255 0
 0 

 
 or 

 
 COLOR [percentage] 0
 0 

 
 if percentageis already
 0..255 

 
    

 
 for a red gradient for
 example?  

 
    

 
 thanks
 allot! 

 

 
 _______________________________________________
 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
Størner.Henrik Juul HSO | 26 Jun 13:03 2014
Picon

Mapcache on Windows with IIS - any binaries available?

Hi,

 

I am trying to setup a mapserver+mapcache installation on Windows 2012, using IIS as the webserver.

 

(The powers that be insist on trying it on Windows before doing it on Linux…)

 

I’ve found the mapserver binaries on http://www.gisinternals.com/sdk/, and have mapserver working in FastCGI mode on IIS. So I’d like to add mapcache to the software stack, but it isn’t included in the gisinternals.com package. I have seen Paul James’ message that building and running it is possible http://lists.osgeo.org/pipermail/mapserver-users/2013-March/074294.html - but I don’t have Visual C available.

 

So I guess what I am really asking for is: Is there a precompiled binary of mapcache for Windows x64 available anywhere?

 

Thanks in advance.

 

 

Best regards / Venlig hilsen

 

Henrik Juul Størner, Servicearkitekt

 

 Application Technology

 

Lautrupparken 40-42, DK-2750 Ballerup

Direkte +4544604433 Mobil +4591375751

Vi gør opmærksom på, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selvom e-mailen og ethvert vedhæftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan påvirke computeren eller it-systemet, hvori den modtages og læses, åbnes den på modtagerens eget ansvar. Vi påtager os ikke noget ansvar for tab og skade, som er opstået i forbindelse med at modtage og bruge e-mailen.

Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or it-system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message.

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Basques, Bob (CI-StPaul | 25 Jun 16:11 2014
Picon
Picon

PDF output and file naming (.pdf)

All,

I got the PDF output to work, but the outputted file ends up being output as <some_name>.map.

I'm using CGI (streaming result?) with map.imagetype=pdf, the result is indeed a PDF, but with a .map file name.

I tried setting  EXTENTION "pdf" and MIMETYPE "application/x-pdf" inside of FORMATOPTION to no effect as far as the file name tag.  Do I maybe need to output temporarily to a server location (WEB) for subsequent download?

Thanks

bobb
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Travis Kirstine | 25 Jun 15:17 2014

MapCache inverted Y values

I just configured mapcache using a grid using 512 512 size.  Everything seems OK however when I view the resultant tilesets in the demo map viewer they have a inverted Y value, the latitudes are negative values when they should be positive.  Do I need to create a custom cache to handle tile sizes other that 256?


   <grid name="gmaps_512">
      <extent>-20037508.3427892480 -20037508.3427892480 20037508.3427892480 20037508.3427892480</extent>
      <srs>EPSG:3857</srs>
      <srsalias>EPSG:900913</srsalias>
      <units>m</units>
      <size>512 512</size>
      <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 0.29858214173896975 0.149291070869484875 0.0746455354347424375</resolutions>
   </grid>


   <cache name="disk" type="disk">
      <base>/opt/mapcache/512_cache</base>
      <creation_retry>10</creation_retry>
      <symlink_blank/>
   </cache>



  <tileset name="default_512">
    <source>default_wms</source>
    <cache>disk</cache>
    <grid>gmaps_512</grid>
    <format>mixed</format>
    <metatile>2 2</metatile>
    <metabuffer>10</metabuffer>
  </tileset>

  <source name="default_wms" type="wms">
    <getmap><params>
    <format>image/png</format>
    <layers>default</layers>
    <transparent>true</transparent>
    </params></getmap>
    <http><url>http://wmts2.firstbasesolutions.com/cgi-bin/mapserver_wms_fcgi</url></http>
  </source>






--

Travis Kirstine
First Base Solutions Inc.
140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3
p. 905-477-3600 ext. 301 | m. 647-534-4798
http://www.firstbasesolutions.com
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Malm Paul | 25 Jun 07:36 2014

Map data strategy

Hi,

I’ve just started using Mapserver and have a question, that could help me to cut corners.

 

1)      I have a lot of S57 charts in different scale groups 1-6.

2)      It should be simple to maintain the map data (a lot of upgrades).

3)      Of course, it should be fast.

 

Strategy of today:

I have the original data stored in the original format on ram disk. I have one map file that INCLUDEs all “layer” files (one per chart).

The layer files defines the all the interesting chart features (layers) and the max scale.

I was thinking that I only shall use max scale, not min scale, because if I don’t have a chart with a larger scale a certain position when I zoom in, then I shall at least see a chart. Even if has a to small scale for this zoom. I don’t have any spatial restrictions on each layer or layer file, just for the map file -90, -180, 90, 180 (i.e no limits)

Is it possible to have spatial limitations on a layer?

 

When I use this strategy the map server chokes then I zoom in too much.

 

I can see that the map configuration could be done in a lot of different ways,

How would your strategy be?

 

Kind regards,

Paul

 

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

Gmane