[mapserver-users] Installing MapServer on Windows

Anzel, Phil - NRCS, Fort Collins, CO Phil.Anzel at ftc.usda.gov
Mon Jun 30 09:34:01 PDT 2014


Hi All,

If you are dealing with an invariant projection for your overall MAP and an invariant one for each layer displayed, consider embedding the definition (copied from the epsg file) as one or more hard-coded PROJECTION statements embedded in the mapfile.

For example,  Web Mercator (3857 is defined within the epsg file as:
  # WGS 84 / Pseudo-Mercator
  <3857> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs <>

In place of a mapfile statement such as:
  PROJECTION 'init=epsg:3857'

you could follow Example 3 from http://mapserver.org/mapfile/projection.html; the mapfile could contain:
  PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END

If this is feasible in your context you would save yourself the elapsed time associated with file open/file read operations against the epsg file.

- Phil Anzel 
  USDA/NRCS contractor - Team Vistronix

This electronic message contains information generated by the USDA solely for the intended recipients.  Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties.  If you believe you have received this message in error, please notify the sender and delete the email immediately.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org
Sent: Saturday, June 28, 2014 1:00 PM
To: mapserver-users at lists.osgeo.org
Subject: mapserver-users Digest, Vol 77, Issue 56

Send mapserver-users mailing list submissions to
	mapserver-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/mapserver-users
or, via email, send a message with subject or body 'help' to
	mapserver-users-request at lists.osgeo.org

You can reach the person managing the list at
	mapserver-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..."


Today's Topics:

   1. Re: large # of GeoTiffs mapfile/index strategy (Mark Korver)
   2. Re: Installing MapServer on Windows (Jeff McKenna)
   3. msCalculateScale() error (Stefanos Anastasiou)
   4. Reconfiguring mapserver (Stefanos Anastasiou)


----------------------------------------------------------------------

Message: 1
Date: Fri, 27 Jun 2014 17:27:34 -0700
From: Mark Korver <mwkorver at gmail.com>
To: Even Rouault <even.rouault at mines-paris.org>
Cc: mapserver-users <mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] large # of GeoTiffs mapfile/index
	strategy
Message-ID:
	<CAHTiukJsGwrhrY5taKccoj-n_=q0sbLB64vtFBbZdOAe+4o2+g at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Jukka,  thank you for the reminder on -t_srs, I had forgotten about that.
It makes sense if using the shapefile index to build that in the srs you plan to output. Now that I have been reminded of that feature of gdaltindex I can see that would be faster than parsing a large vrt file.
Thanks.


On Fri, Jun 27, 2014 at 1:14 PM, Even Rouault <even.rouault at mines-paris.org>
wrote:

> Le vendredi 27 juin 2014 22:01:37, Rahkonen Jukka (Tike) a ?crit :
> > Hi,
> >
> > Use gdaltindex with -t_srs http://www.gdal.org/gdaltindex.html and 
> > all
> your
> > troubles are solved.
>
> Jukka's advice is good, make sure to use MapServer 6.4 for mixed SRS 
> support.
> You'll likely have to use -t_srs EPSG:4326 to have a SRS that is 
> compatible with 9 UTM zones (or any other global SRS).
>
> There's no spatial index mechanism within VRT files. If the number of 
> files in a VRT is reasonnably small (let's say < 100), the performance 
> should still be OK hopefully.
>
> >
> > Jukka Rahkonen
> >
> > ________________________________
> > L?hett?j?: Mark Korver<mailto:mwkorver at gmail.com>
> > L?hetetty: ?27.?6.?2014 21:57
> > Vastaanottaja: 
> > mapserver-users<mailto:mapserver-users at lists.osgeo.org>
> > Aihe: [mapserver-users] 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.
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140627/77080035/attachment-0001.html>

------------------------------

Message: 2
Date: Sat, 28 Jun 2014 10:43:55 +0200
From: Jeff McKenna <jmckenna at gatewaygeomatics.com>
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Installing MapServer on Windows
Message-ID: <53AE804B.5030103 at gatewaygeomatics.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

On IIS systems I often have to set the PROJ_LIB system environment variable, to the location of the 'epsg' file, and then reboot the server, such as:

  Variable: PROJ_LIB
  Value: C:\ms4w\proj\nad

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services http://www.gatewaygeomatics.com/



On 2014-06-27, 11:11 PM, Kris Spring wrote:
> 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
> 
> 



------------------------------

Message: 3
Date: Sat, 28 Jun 2014 13:34:44 +0100
From: Stefanos Anastasiou <emperor_stef at yahoo.gr>
To: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] msCalculateScale() error
Message-ID:
	<1403958884.47549.YahooMailNeo at web171804.mail.ir2.yahoo.com>
Content-Type: text/plain; charset="iso-8859-7"

Hello..! ?:-)

I'm having a map in browse mode with a simple function taken from the tutorial 1.9 in?http://demo.mapserver.org/. ?I use ogrinfo in order to get the extent and enter it to the mapfile. When I click on the image I get the following error "msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000."?

When I run it map mode everything is OK but in browse mode it's gives me that. Does it have to do with the UNITS maybe??

Thanks!?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140628/0d1f037c/attachment-0001.html>

------------------------------

Message: 4
Date: Sat, 28 Jun 2014 16:52:59 +0100
From: Stefanos Anastasiou <emperor_stef at yahoo.gr>
To: "mapserver-users at lists.osgeo.org"
	<mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] Reconfiguring mapserver
Message-ID:
	<1403970779.45099.YahooMailNeo at web171804.mail.ir2.yahoo.com>
Content-Type: text/plain; charset="iso-8859-7"

Hello list..!!

I'm using mapserver 6.2.0. ?The command mapserv -v gives me the output:

MapServer version 6.2.0 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG INPUT=SHAPEFILE

I assume there are some things missing here like proj, gdal, wfs and wms. Can I have some help in reconfiguring it??

Thanks a lot?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140628/feb82e8a/attachment-0001.html>

------------------------------

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

End of mapserver-users Digest, Vol 77, Issue 56
***********************************************



More information about the MapServer-users mailing list