Re: [MapServer-users] mapserver.conf question

2024-05-29 Thread Richard Greenwood via MapServer-users
If you're running MapServer under Apache as a FastCGI (and hopefully you are because it's much faster than regular CGI) I believe you need: FcgidInitialEnv MAPSERVER_CONFIG_FILE "/path/to/your/mapserver.conf" In your apache2.conf or one of its includes. On Wed, May 29, 2024 at 2:35 AM Brent

Re: [MapServer-users] How to cascade data from OGC API Features service?

2023-11-13 Thread Richard Greenwood via MapServer-users
Are you sure that you don't just have a typo? Your file is named "*ogcfeat*.vrt" but your CONNECTION "c:/ms4w_data/*oapif*.vrt" I set up a quick test and I haven't gotten a map (it timed out 504 error after several minutes) but I didn't get an error. Maybe you could share a smaller test data set

Re: [MapServer-users] MapServer-users Digest, Vol 183, Issue 13

2023-04-30 Thread Richard Greenwood
Try "class" lower case. Be sure that the case of your column names match the case in postges. On Sun, Apr 30, 2023, 3:04 PM Jeremy JK wrote: > Hi Jeff, > My understanding, as the tutorial says, is that the class column comes > from the dbf file > That's the tutorial's dataset - shp file and dbf

Re: [MapServer-users] Mapserver Apache2 Rewrite not working

2022-12-23 Thread Richard Greenwood
You might try [QSA] Query String Append https://cwiki.apache.org/confluence/display/HTTPD/RewriteFlags+QSA Something like: RewriteRule Sentinel2Ukraine /cgi-bin/mapserv?map=/DyskPlanetiler/MAPFILEs/Sentinel2Ukraine.map [QSA] Or maybe: RewriteRule ^Sentinel2Ukraine$

[MapServer-users] cgi/fcgi mapcache problem

2022-11-29 Thread Richard Greenwood
I have been running mapcache as an Apache module. I'm now trying to get the same configuration running as a FastCGI process. But making a CGI or FCGI request I get the error message "missing a service". I have the mapcache binary installed in the Ubuntu cgi-bin directory. The full urls are below,

Re: [MapServer-users] using SCALETOKEN in an EXPRESSION

2022-11-10 Thread Richard Greenwood
layer’s DATA statement - so it might simply not work within class > expressions. > As a workaround you might use MINSCALEDENOM and MAXSCALEDENOM within CLASS. > > Kind regards, > Andreas > > -Ursprüngliche Nachricht- > Von: MapServer-users Im Auftrag > von Richa

[MapServer-users] using SCALETOKEN in an EXPRESSION

2022-11-09 Thread Richard Greenwood
Can anyone tell me what's wrong with my EXPRESSION below? I'm trying to filter features from the National Hydrology Dataset based on scale using SCALETOKEN and I can't seem to get it right. [Visibility] is a field in the data that suggests the scale at which a feature should be shown. Thanks!

Re: [MapServer-users] Hiding path to .map-files with Mapserver 8/ms4w5.0.0

2022-08-18 Thread Richard Greenwood
I just tried quickly on Linux and an Apache alias to a map file did not work. I'd suggest that you move your Apache aliases out of your apache.cong and into the MAP section of the new mapserver.conf file. They will then work in 8.0 like they did in previous mapserver vversions. On Thu, Aug 18,

Re: [mapserver-users] Mapserver vsis3 perfomance

2022-07-22 Thread Richard Greenwood
I have found that S3 has a little more latency than even the cheapest AWS EBS storage (SC1). I used Apache AB several years ago to test and didn't do an especially rigorous job with the testing so that might not be applicable in your case, and for that matter, that might not still be the case.

Re: [mapserver-users] [GeoMoose-users] [SURVEY] Publishing of Twin Cities, OSGeo Local Chapter Meeting Recordings

2022-07-13 Thread Richard Greenwood
+1 Bob, I really appreciate the effort you put into this and wish that I participated more. Rich On Wed, Jul 13, 2022, 11:10 AM Basques, Bob (CI-StPaul) < bob.basq...@ci.stpaul.mn.us> wrote: > Jim, > > > > I’ve asked a few times on the Discuss list. Originally they were using > Vimeo, but I

Re: [mapserver-users] CGI or FastCGI

2022-06-13 Thread Richard Greenwood
I recommend FastCGI. It's faster because the mapserv process remains in memory between requests. I don't know of any downsides. On Mon, Jun 13, 2022 at 7:26 AM Jeremy JK wrote: > Hello, > Which one is better to use for mapserver set up CGI or FastCGI? > How to set up apache configuration for

Re: [mapserver-users] getting the scale in a map file at runtime

2022-06-03 Thread Richard Greenwood
cales. > Yes - I had not thought of that. It might be a better way than what I was trying to do. Thank you! Am 03.06.22 um 16:21 schrieb Richard Greenwood: > > > > > > On Fri, Jun 3, 2022 at 8:00 AM Jörg Thomsen (WhereGroup) > > mailto:joerg.thom...@wheregroup.com&g

Re: [mapserver-users] getting the scale in a map file at runtime

2022-06-03 Thread Richard Greenwood
error: DBASE file error. Item 'scaledenom' not found. > > Jörg > > > Am 03.06.22 um 15:45 schrieb Richard Greenwood: > > Can I get the current scale for use in a map file at runtime. > > Specifically, I'd like to use it in a geotransform something like: > >

[mapserver-users] getting the scale in a map file at runtime

2022-06-03 Thread Richard Greenwood
Can I get the current scale for use in a map file at runtime. Specifically, I'd like to use it in a geotransform something like: GEOMTRANSFORM (generalize([shape], [scale])) or more likely for use in an expression: GEOMTRANSFORM (generalize([shape], [scale] / 100)) Thanks -- Richard W.

Re: [mapserver-users] Same database connection across multiple layers

2022-05-13 Thread Richard Greenwood
Yep. On Fri, May 13, 2022 at 9:52 AM Atlanta Geek wrote: > So I would put the INCLUDE in all the layers, correct? > > On Fri, May 13, 2022 at 11:05 AM Richard Greenwood < > richard.greenw...@gmail.com> wrote: > >> Use INCLUDE 'pgconn.map' >> >> With pgconn

Re: [mapserver-users] Same database connection across multiple layers

2022-05-13 Thread Richard Greenwood
Use INCLUDE 'pgconn.map' With pgconn.map looking like: CONNECTIONTYPE postgis CONNECTION "user=USER password=PASSWORD dbname=DATABASE host=127.0.0.1 port=5432" PROCESSING "CLOSE_CONNECTION=DEFER" On Fri, May 13, 2022 at 7:14 AM Atlanta Geek wrote: > Is there a way to set the db connection

Re: [mapserver-users] vector tiles?

2022-02-22 Thread Richard Greenwood
org/development/rfc/ms-rfc-119.html#bug-id-and-references >> >> >> Regards >> >> Thomas Gratier >> >> Le sam. 19 févr. 2022 à 03:11, Richard Greenwood < >> richard.greenw...@gmail.com> a écrit : >> >>> Are vector t

[mapserver-users] vector tiles?

2022-02-18 Thread Richard Greenwood
Are vector tiles supported and documented? My searches only find RFC 119. -- Richard W. Greenwood www.greenwoodmap.com ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] working with ESRI coordinate systems in proj.db

2022-01-08 Thread Richard Greenwood
Mark, Rather than use the proj.db to look up an ESRI or EPSG code you could try explicitly defining your source coordinate system. There's an example here: https://mapserver.org/mapfile/projection.html You can also edit, or create your own epsg file. In fact, that used to be a recommended

Re: [mapserver-users] Mapserver random error message

2021-12-12 Thread Richard Greenwood
SInce it says that it can't generate an extent from the shapes you might look at your data source (shapes). And give us a little more detail, like what is your data source - shapefile, postgres, etc.? Is it valid? What does your CGI request look like? On Sun, Dec 12, 2021 at 8:38 AM Carlos Neves

Re: [mapserver-users] Anyone got time to help with a MapServer setup?

2021-09-11 Thread Richard Greenwood
Your email address doesn't inspire a lot of confidence. What platform are you installing MapServer on - Linux, Mac, Windows? Do you need help with CGI or MapScript? On Sat, Sep 11, 2021 at 7:00 AM Spam wrote: > No takers? Maybe I should have asked for free help? > > > On 2021-09-09 3:59 PM,

Re: [mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client

2021-09-09 Thread Richard Greenwood
IMHO. > > --Steve > > On Wed, Sep 1, 2021 at 5:31 PM Richard Greenwood < > richard.greenw...@gmail.com> wrote: > >> I need to serve WMS GetFeatureInfo requests in a suitable format for an >> ESRI JavaScript client. I'm asking if anyone has any tips or experience >>

[mapserver-users] serving WMS GetFeatureInfo to ESRI JavaScript client

2021-09-01 Thread Richard Greenwood
I need to serve WMS GetFeatureInfo requests in a suitable format for an ESRI JavaScript client. I'm asking if anyone has any tips or experience they could share. I'm not developing the client. I'm serving the content to a company that's used to using ESRI REST services and doesn't have any

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-23 Thread Richard Greenwood
er" (with tuning applied) and how usable the > result is? > > Regards, Andreas > > -Ursprüngliche Nachricht- > Von: Steve Lime > Gesendet: Mittwoch, 19. Mai 2021 18:24 > An: Eichner, Andreas - SID > Cc: Richard Greenwood ; mapserver < > mapserver-user

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-19 Thread Richard Greenwood
" >IMAGEMODE RGB >EXTENSION "png" >FORMATOPTION "ANTIALIAS=FALSE" >FORMATOPTION "QUANTIZE_FORCE=ON" >FORMATOPTION "QUANTIZE_COLORS=256" >FORMATOPTION "COMPRESSION=9" > END > > I used the msautote

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-19 Thread Richard Greenwood
CAIRO_ANTIALIAS_NONE) to switch it > off. But then you would loose paletted image and compression control. > > With the modified AGG you should still apply the other suggestions with > reduced palette and maximum compression. > > HTH > > > -----Ursprüngliche Nachricht- &g

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-18 Thread Richard Greenwood
gt; > On Tue, May 18, 2021 at 1:12 PM Richard Greenwood < > richard.greenw...@gmail.com> wrote: > >> Oops - typo there, reducing the colors from 256 to *125* reduced the >> image size by about 15%. >> >> On Tue, May 18, 2021 at 12:11 PM Richard Greenwood <

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-18 Thread Richard Greenwood
Oops - typo there, reducing the colors from 256 to *125* reduced the image size by about 15%. On Tue, May 18, 2021 at 12:11 PM Richard Greenwood < richard.greenw...@gmail.com> wrote: > Bob - I think GD was quite unpopular with the developers. Thomas Bonfort > was pretty adamant ab

Re: [mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-18 Thread Richard Greenwood
that maybe discussing something on adding GD > back in might be prudent? Or are there methods to get down to these > previous files sizes with the newer approaches? > > > > I have the same concerns related to image size from the performance side, > and running on Mob

[mapserver-users] anti-aliasing (was differing image size with different mapserver versions)

2021-05-18 Thread Richard Greenwood
Thanks to several helpful replies to my previous thread I know that the increased image size between MapServer 6 with the GD driver and MapServer 7 with the AGG driver is due to differences in anti-aliasing (and lack of) in the two drivers. (AGG features anti-aliasing and sub-pixel resolution

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Richard Greenwood
l ANTIALIAS keywords are > now ignored". But the keyword still appears in quite a many places: > > https://mapserver.org/search.html?q=antialias > > > > Would it be time to remove them as well as now not useful references to GD > renderer (removed by RFC 99 in 2013)? >

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Richard Greenwood
places: > > https://mapserver.org/search.html?q=antialias > > > > Would it be time to remove them as well as now not useful references to GD > renderer (removed by RFC 99 in 2013)? > >From my testing it seems that <=6.4 is aliased and >=7.0 is antialiased regardless o

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-17 Thread Richard Greenwood
be interesting to test the output size with more > typical maps. > > > > -Jukka Rahkonen- > > > > *Lähettäjä:* mapserver-users > *Puolesta > *Seth G > *Lähetetty:* maanantai 17. toukokuuta 2021 11.27 > *Vastaanottaja:* Richard Greenwood > *Kopio:* mapserver

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Richard Greenwood
gt; perhaps try to turn off antialiasing in your CLASS.STYLE. This has been > re-vived very recently for AGG line rendering. It is master only however. > Le 15/05/2021 à 19:07, Richard Greenwood a écrit : > > Even, > > Thank you. I had ignored the difference in the interlacing of the two

Re: [mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Richard Greenwood
tion. > > From what I can see in the doc, the interlacing mode was removed in the > 7.0 release when GD went off, so I don't think you can do much. I guess > that could be re-added but would require some coding. > > Even > > > Le 15/05/2021 à 17:43, Richard Greenwood a

[mapserver-users] differing image size with different mapserver versions

2021-05-15 Thread Richard Greenwood
I get significantly different image sizes between MapServer 6.4 and 7.6 with the same output format definition. I've tried many variations of the following. OUTPUTFORMAT NAME "png-test" DRIVER "AGG/PNG" # GD driver is same (6.4 only) MIMETYPE "image/png; mode=8bit" IMAGEMODE PC256

Re: [mapserver-users] Clipping a .tif with a polygon within .map file

2020-11-22 Thread Richard Greenwood
Here's an example using a shapefile for the mask but any vector source will work the same. LAYER GROUP "a17" NAME "a17-mask" STATUS off TYPE polygon DATA "shapefiles/mask" CLASS STYLE COLOR 0 0 0 END END END LAYER NAME "a2017" GROUP "a17" STATUS off TYPE raster DATA

Re: [mapserver-users] Is mode=tile always epsg:3857?

2020-10-24 Thread Richard Greenwood
Thanks Mike! On Sat, Oct 24, 2020 at 11:35 AM Michael Smith wrote: > Rich, > > > > Looking at mode=tile, yes, it sets it to spherical Mercator > > > > https://github.com/MapServer/MapServer/blob/master/maptile.c#L259 > > > > > > > > *From:

[mapserver-users] Is mode=tile always epsg:3857?

2020-10-24 Thread Richard Greenwood
I'm trying to generate vector tiles in a non epsg:3857 (web mercator) projection but it looks to me like mapserver is treating it as 3857 despite passing a srs. My request generated by OpenLayers at the full map extent is: /cgi-bin/mapserv?map=mvt.map=EPSG:3738=tile=0+0+0=ownership=mvt My

Re: [mapserver-users] php_mapscript throubleshoot

2020-03-10 Thread Richard Greenwood
Shouldn't php_mapscript.so be in /usr/lib/php/20170718/ or similar? I'm on Ubuntu so maybe it's different on Centos. Also note that you have compiled two different version of mapscript so you should have both php_mapscript.so and php_mapscriptng.so On Fri, Mar 6, 2020 at 7:38 AM Domenico Febbo

[mapserver-users] mapserv on IIS 10

2019-11-08 Thread Richard Greenwood
I used the the excellent instructions at https://mapserver.org/installation/iis.html to setup MapServer on WIndows Server 2019, IIS 10, FastCGI. It works, but it's not seeing my environment variables. I don't usually run MapServer on Windows but in this case it's a requirement. In previous IIS

Re: [mapserver-users] mapserver 7.4 beta phpng build error

2019-04-25 Thread Richard Greenwood
I finally got PHPNG to build. As Jeff suggested, I built and installed SWIG 4.0 beta but that didn't help. I compared my configure flags against Seth's at https://github.com/mapserver/mapserver/wiki/PHPNG-SWIG-MapScript-Linux-Build and it appears -DWITH_PYTHON=ON is what I was missing. Does that

Re: [mapserver-users] mapserver 7.4 beta phpng build error

2019-04-21 Thread Richard Greenwood
> Rich, > > Do you have the php-dev package installed? > > -Steve W > > On 4/21/2019 9:17 AM, Richard Greenwood wrote: > > Seth, > > > > I don't think this helps your issue with Travis, but just for the > > record, I still can't get PHPNG to build on Ubunt

Re: [mapserver-users] mapserver 7.4 beta phpng build error

2019-04-21 Thread Richard Greenwood
s. > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 4:41 AM, Richard Greenwood wrote: > > Seth, > > I understand that there are two php versions and the native one builds > fine for me. But the swig one (p

Re: [mapserver-users] Problem install mapserver on ubuntu 18.04

2019-04-04 Thread Richard Greenwood
> Please consider the environment before printing this email! > > > > > On gio, 04 apr 2019 14:29:33 +0200 *Richard Greenwood > >* wrote > > Have you enabled cgi and fcgi? >sudo a2enmod cgi fcgid >

Re: [mapserver-users] Problem install mapserver on ubuntu 18.04

2019-04-04 Thread Richard Greenwood
Have you enabled cgi and fcgi? sudo a2enmod cgi fcgid php is not used or necessary for WMS. On Thu, Apr 4, 2019 at 6:20 AM Roberto Marzocchi wrote: > Permission are right (755) anyway I try to change it and nothing change > > Perhaps a problem with fastcgi? I installed php7.2-fpm package > >

Re: [mapserver-users] mapserver 7.4 beta phpng build error

2019-04-03 Thread Richard Greenwood
pt support" OFF > > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Thu, Apr 4, 2019, at 12:06 AM, Richard Greenwood wrote: > > > > On Wed, Apr 3, 2019 at 10:39 AM Seth G wrote: > > > Hi Richard, > > If you had previous errors

Re: [mapserver-users] mapserver 7.4 beta phpng build error

2019-04-03 Thread Richard Greenwood
ad or git clone, or is it created in the build process? > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Wed, Apr 3, 2019, at 4:11 AM, Richard Greenwood wrote: > > I get the following error: > > Building C object > mapscript/phpng

[mapserver-users] mapserver 7.4 beta phpng build error

2019-04-02 Thread Richard Greenwood
I get the following error: Building C object mapscript/phpng/CMakeFiles/php_mapscriptng.dir/mapscriptPHP7_wrap.c.o cc: error: /rwg/src/mapserver/build/mapscript/phpng/mapscriptPHP7_wrap.c: No such file or directory cc: fatal error: no input files If i'm reading the error message correctly it's

Re: [mapserver-users] MapServer 7.4 beta PHPNG

2019-04-02 Thread Richard Greenwood
lated: https://github.com/mapserver/mapserver/pull/5776 > Could you try adding the change to see if it works? > > Seth > > -- > web:http://geographika.co.uk > twitter: @geographika > > > On Tue, Apr 2, 2019, at 4:03 PM, Richard Greenwood wrote: > > On U

[mapserver-users] MapServer 7.4 beta PHPNG

2019-04-02 Thread Richard Greenwood
On Ubuntu 18.04 I get the following: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: PHP_FOUND_INCLUDE_PATH (ADVANCED) I have both php 5.6 and 7.2 installed. In the

Re: [mapserver-users] mamcache vertical assembly

2019-02-06 Thread Richard Greenwood
less practical. Best regards, Rich On Tue, Feb 5, 2019 at 8:49 PM Stephen Woodbridge < stephenwoodbridg...@gmail.com> wrote: > On 2/5/2019 8:52 PM, Richard Greenwood wrote: > > Stephen, > > > > I was watching this thread hoping for a reply to your original > > que

Re: [mapserver-users] mamcache vertical assembly

2019-02-05 Thread Richard Greenwood
Stephen, I was watching this thread hoping for a reply to your original question because it's an interesting problem. If you have time to provide a more detailed explanation of your solution I'd be interested. Best regards, Rich On Tue, Feb 5, 2019 at 4:38 PM Stephen Woodbridge <

Re: [mapserver-users] Mapserver limit watermark

2018-11-28 Thread Richard Greenwood
OpenLayers has "attribution" functions that allow you to place copyright information. So instead of putting the watermark on the images on the server you do it in the browser. On Tue, Nov 27, 2018 at 1:55 AM Sebastiano Laini < sebastiano.la...@buchanancomputing.co.uk> wrote: > Thanks Steve, > >

Re: [mapserver-users] What is the best way to generate WMS?

2018-09-21 Thread Richard Greenwood
On Fri, Sep 21, 2018 at 3:33 AM Sven Schroeter wrote: > Hi Vladimir, > > the fastest way is probably the CGI variant. You write your mapfiles and > deliver the data via mapserv and the corresponding parameters. > In the case of PHP you have to build a wrapper, which is no problem. If > your

Re: [mapserver-users] New mappyfile release (with CLI)

2018-08-23 Thread Richard Greenwood
Based on Tom's comments I figured that I'd better try out mappyfile. I ran into a couple issues. Installing on Ubuntu 18.04 required python-setuptools (sudo apt-get install python-setuptools) mappyfile validated failed on the '%' modulo operator in an expression: EXPRESSION ( ([height] % 50) =

[mapserver-users] MapServer 7.2.0 PHP support?

2018-05-14 Thread Richard Greenwood
Is there php7 mapscript support in MapServer 7.2? I grabbed the 7.2 beta and built the cgi mapserv on Ubuntu 18.07 then tried to build with php mapscript. Ubuntu 18.04 provides php 7.2. I got cmake to generate a Makefile but a couple things stand out below, the "PHP5" and the two "NOTFOUND".

Re: [mapserver-users] Amazon AWS instance size for MapServer

2018-05-01 Thread Richard Greenwood
You will probably do fine with the smaller instance, but a few things to consider: * Data from shapefiles not a database. * A qix index on the shapefiles if > 10k features. * FastCGI. * Labeling can be pretty resource intensive so pay attention to them. * Linux, not Windows, which requires more

Re: [mapserver-users] scalebar wrong with epsg:3857

2018-01-28 Thread Richard Greenwood
ed ones > let you show distortions using indicators called Tissot-indicatrices) > > http://kartoweb.itc.nl/geometrics/ > https://en.wikipedia.org/wiki/Tissot%27s_indicatrix > > > -- > Barend Köbben > > > On 28/01/2018, 20:36, "mapserver-users on behalf of Richard Greenw

[mapserver-users] scalebar wrong with epsg:3857

2018-01-28 Thread Richard Greenwood
The scalebar created by MapServer 4.6 is too short when I'm using epsg:3857. I'm guessing that it's correct at the equator and gets worse as you get further north or south? Has anyone else experienced this and possibly have a solution? Thanks, Rich -- Richard W. Greenwood, PLS

Re: [mapserver-users] Georeferencing a raster without worldfile

2017-12-01 Thread Richard Greenwood
On Fri, Dec 1, 2017 at 9:50 AM, Trond Michelsen < trondmm-mapserver+2...@crusaders.no> wrote: > Thank you for the suggestion. Unfortunately, I forgot to mention that > they're png-files. > > -- > Trond Michelsen > > > On Fri, Dec 01, 2017 at 04:38:38PM +, Fawcett, David (MNIT) wrote: > > If

Re: [mapserver-users] Apply style to geojson based on property in geojson data

2017-10-25 Thread Richard Greenwood
Expressions are easy to mess up. To test if "value" is getting thru the drive try using it as a label. That might help you to narrow down the problem. LABELITEM "value" . . . CLASS . . . LABEL . . . END END On Wed, Oct 25, 2017 at 2:08 AM, Tuffa

Re: [mapserver-users] Apply style to geojson based on property in geojson data

2017-10-24 Thread Richard Greenwood
I haven't used geojson as a data source, but maybe if you shared a small example of your map file and the data it would help. On Tue, Oct 24, 2017 at 8:43 AM, Tuffa wrote: > Hello! > > I am rendering a map of African countries from a single geojson file. Each >

Re: [mapserver-users] Draw roads WITHOUT anti-aliasing

2017-10-16 Thread Richard Greenwood
On Mon, Oct 16, 2017 at 1:23 PM, Erik H wrote: > I don't think we have much use for lines that are one pixel wide. > > I'm surprised at how difficult this is; isn't there some driver other than > AGG/PNG I could use? > In mapserver versions before 7.0 there is the GD

Re: [mapserver-users] rotating a label 90 degrees.

2017-08-01 Thread Richard Greenwood
I've only been using MapServer for like 15 or 18 years now and I continue to be blow away by these hidden features! (I guess if I learned to read the docs they might not be so hidden) Anybody going to Boston? Rich On Mon, Jul 31, 2017 at 3:00 PM, Brent Fraser wrote:

Re: [mapserver-users] Class maxscaledenom performance

2017-05-31 Thread Richard Greenwood
On Wed, May 31, 2017 at 2:40 PM, Jeff McKenna wrote: >- be sure to have PostGIS create OIDs by default in your databases (see > the "default_with_oids" setting in postgresql.conf) I have not seen that recommendation before. Can you explain why it is

Re: [mapserver-users] POST support for GetMap requests

2017-05-03 Thread Richard Greenwood
This might help: https://gis.stackexchange.com/questions/232215/mapserver-wms-http-post-requests As mentioned in one of the answers I was able to do a GetMap request via POST using key=value. I did not try with XML. Rich On Tue, May 2, 2017 at 5:44 AM, Sushrut Shivaswamy <

Re: [mapserver-users] Allow request in http and https

2017-05-02 Thread Richard Greenwood
If you really have to have two different wms_onlineresource and if Steve's suggestion to leave out the protocol didn't work, then you could create two ows URLs and use the map file's INCLUDE directive to refer to the same map file just using different wms_onlineresource in the two. On Tue, May 2,

Re: [mapserver-users] "Custom" GeoTIFF EPSG values not working

2017-02-16 Thread Richard Greenwood
> > "y_0=0" > > "ellps=WGS84" > > "datum=WGS84" > > "units=m" > > "no_defs" > > END > > > at the top of my mapfile. In both cases, I have this in the LAYER > definition: > >

Re: [mapserver-users] "Custom" GeoTIFF EPSG values not working

2017-02-15 Thread Richard Greenwood
You should probably first get it sorted with gdalinfo before messing with mapserv. So you're doing gdalinfo on exactly the same file on your old and new systems and getting those results? What version of gdal on the two? Use "gdalinfo --version" and what type of file is it? Does it have an

Re: [mapserver-users] Generic geometry type in WFS

2016-12-20 Thread Richard Greenwood
FYIW - I used the GROUP clause on three layers with three different geometry types and MapServer produced wfs output in both GML and GeoJSON formats that was correctly consumed by OpenLyaers. LAYER GROUP 'geoms' NAME 'pt' TYPE 'point' . . . END LAYER GROUP 'geoms' NAME 'ln' TYPE

Re: [mapserver-users] SQL credentials

2016-10-28 Thread Richard Greenwood
Does this meet your needs? http://mapserver.org/utilities/msencrypt.html Another option might be to INCLUDE the connection info and then limit the user permissions on the INCLUDE-ed file. Rich On Thu, Oct 27, 2016 at 2:57 PM, Vogt, Robert (RCIS) wrote: > In my connection

Re: [mapserver-users] using MINSIZE and MAXSIZE with ANCHORPOINT

2016-10-09 Thread Richard Greenwood
; > END # Feature > CLASS > NAME "vector" > STYLE > SYMBOL "arrowv" > MINSIZE 5 > SIZE 10 > MAXSIZE 40 > MINWIDTH 1 > MAXWIDTH 1 > COLOR 0 0 255 > ANGLE [ang

[mapserver-users] using MINSIZE and MAXSIZE with ANCHORPOINT

2016-09-23 Thread Richard Greenwood
It seems like my symbol's ANCHORPOINT is not being scaled when my style definition uses MINSIZE, MAXSIZE and MAXSCALEDENOM. Here's my symbol definition: SYMBOL NAME "arrowv" TYPE vector ANCHORPOINT 0.5 1 POINTS 0 2 1 0 2 2 -99 -99 1 0 1 3 END END and my style

Re: [mapserver-users] Rendering of adjacent dashed lines

2016-06-19 Thread Richard Greenwood
As others have suggested, you need to "preprocess your data to merge adjacent lines into one". This can be done with topology. PostGIS has topology support. You would have to convert (and maintain) your simple features polygons as a PostGIS topology and then render them as lines (not polygons) in

Re: [mapserver-users] Runtime variable Substitution Filter

2016-03-10 Thread Richard Greenwood
Michael's suggestion is very good. Another method would be to define the later twice with two different names and no filter in one of the definitions. That would also allow you to style the layer differently which might be desirable. Rich On Thu, Mar 10, 2016 at 6:44 PM, Michael Smith

Re: [mapserver-users] Using a attribute substring for labeling

2016-02-29 Thread Richard Greenwood
Probably not the direction you want to go, but if you did it as a WFS, or other client-side vector layer, you could process the text in the browser with JavaScript, at least in OpenLayers. On Mon, Feb 29, 2016 at 10:30 AM, Lime, Steve D (MNIT) < steve.l...@state.mn.us> wrote: > Jeff's suggestion

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Richard Greenwood
You need to add something like this to you apache2.conf or in an .htaccess file AddHandler application/x-httpd-php .php .phtml But you might Google a little and find the Ubuntu way of doing it. The .phtml extension got un-registered when you switched to php-fpm. Rich On Tue, Feb 23, 2016 at

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Richard Greenwood
Well you need to rename map.phtml to map.php. I think that your problem is that the ".phtml" is not registered with your php handler. So if you don't want to rename map.phtml you need to modify your Apache config. On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy wrote:

Re: [mapserver-users] mapscript version and date

2016-02-23 Thread Richard Greenwood
What happens if you change the extension from phtml to php, e.g. map.php On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy wrote: > Hi, > > my info.php states that I have installed Mapserver, version 6.4.1 but no > date and version are declared > for php_mapscript. > On

Re: [mapserver-users] running out of colors in PC256 output

2016-01-16 Thread Richard Greenwood
bit GIF. That software does a nice job of color > reduction but I'm sure there are other ways. Then you can use gdalinfo to > extract the palette information. I have a little perl script that parses > the gdalinfo output if you're interested. > > Steve > > -

[mapserver-users] running out of colors in PC256 output

2016-01-15 Thread Richard Greenwood
I'm running into more or less the same problem described in this 12 year old ticket: https://trac.osgeo.org/mapserver/ticket/397 In my case black truetype font labels will be rendered in dark green or similar when there are a lot of colors in accompanying vector layers with anit-aliasing or

Re: [mapserver-users] No Layers when configuring TinyOWS with a Mapserver (.map) File

2015-10-27 Thread Richard Greenwood
I am also unable to get tinyows to work using a map file, even with the example map file from the documentation. I have both the example and my own layer working with an XML file, so I believe there is either a bug with map file support or something missing from the documentation. Regardless of

Re: [mapserver-users] How to install 64-bit Apache and Mapserver on Windows

2015-08-18 Thread Richard Greenwood
On Tue, Aug 18, 2015 at 8:16 AM, Rahkonen Jukka (MML) jukka.rahko...@maanmittauslaitos.fi wrote: FWTools can be wiped away from the document at the same. MS4W could be the next in a row unless it will get a new version sometimes. I agree that http://www.gisinternals.com/ is a complete

Re: [mapserver-users] determining which map file is associated with which fast-cgi process

2015-07-28 Thread Richard Greenwood
association between a FCGI process and a map file. -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] Im Auftrag von Richard Greenwood Gesendet: Montag, 27. Juli 2015 23:28 An: mapserver Betreff: [mapserver

[mapserver-users] determining which map file is associated with which fast-cgi process

2015-07-27 Thread Richard Greenwood
This is probably a more general Linux or fast-cgi question than strictly mapserver, but I don't know where else to ask so I'll give it a try here. I'm serving several different map files and I have several fast-cgi mapserv instances. Am I correct that each mapserv.fcgi is serving a different map

Re: [mapserver-users] Mapserver fastcgi process errors / crash

2015-06-23 Thread Richard Greenwood
I don't have an answer, but a some questions: How do you know that errors in your shapefiles are causing the problem? What kind of shapefiles (point, line, poly) and what sort of errors? How can you tell that the fcgi process is being killed rapidly - from the server logs or elsewhere? Have you

Re: [mapserver-users] static versus shared obj memory use

2015-05-15 Thread Richard Greenwood
share with any other executables. ogr/gdal might be a good example. You have ogr compiled into mapserv. Running many mapserv's will all share the same code page in ram. However ogrinfo, ogr2ogr, etc wont be able to share with mapserv. -Andy On 5/15/2015 4:34 PM, Richard Greenwood wrote

[mapserver-users] static versus shared obj memory use

2015-05-15 Thread Richard Greenwood
I'm working on Linux and have statically linked mapserv for convenience but now I'm wondering if it is adversely affecting memory use. For example, if I have five fcgi mapserv instance like: mapserv.fcgi?map=mapfile1.map mapserv.fcgi?map=mapfile2.map mapserv.fcgi?map=mapfile3.map

Re: [mapserver-users] static versus shared obj memory use

2015-05-15 Thread Richard Greenwood
, Andy Colson a...@squeakycode.net wrote: On 5/15/2015 3:59 PM, Richard Greenwood wrote: I'm working on Linux and have statically linked mapserv for convenience but now I'm wondering if it is adversely affecting memory use. For example, if I have five fcgi mapserv instance like: mapserv.fcgi

Re: [mapserver-users] URL redirection under IIS

2015-05-01 Thread Richard Greenwood
There is some useful info in http://mapserver.org/ogc/wms_server.html#online-resource-wms especially the MS_MAPFILE environment varaible. You have to reboot Windows to get IIS to read the environment, which isn't too handy. And you don't need the '.exe'. So I think you could pretty easily get it

Re: [mapserver-users] permission denied on Trac

2015-04-29 Thread Richard Greenwood
, thomas bonfort wrote: we moved to github a little while ago https://github.com/mapserver/mapserver/issues/2436 On 29 April 2015 at 03:36, Richard Greenwood richard.greenw...@gmail.com wrote: There is a link on this page http://mapserver.org/mapfile/outputformat.htm to this page http

[mapserver-users] permission denied on Trac

2015-04-28 Thread Richard Greenwood
There is a link on this page http://mapserver.org/mapfile/outputformat.htm to this page http://trac.osgeo.org/mapserver/ticket/2436 but I get a permission denied even when I am logged into Trac. Thanks -- Richard W. Greenwood, PLS www.greenwoodmap.com

Re: [mapserver-users] gis internals determine 32/64 bit

2015-04-14 Thread Richard Greenwood
] On Behalf Of Richard Greenwood Sent: Sunday, April 12, 2015 7:04 PM To: mapserver Subject: [mapserver-users] gis internals determine 32/64 bit If I'm looking at an existing binary installation of mapserv and gdal from GIS Internals, how can I determine if it is 32 bit or 64 bit? It seems

Re: [mapserver-users] Ubuntu Trusty, MapServer 6.4.1, Gdal 1.11

2015-04-10 Thread Richard Greenwood
Marco, If you haven't got it working yet, please post the error message and you LAYER definition. Rich On Fri, Apr 10, 2015 at 8:25 AM, Marco Afonso mafonso...@gmail.com wrote: Hi again, Ok Jeff, I can change if I find something new. Not solved yet :p Ok, recompiled libecwj2 and gdal.

Re: [mapserver-users] multiple mapserv versions side by side

2015-02-17 Thread Richard Greenwood
PM, Richard Greenwood wrote: I'd like to play with the mapserv 7 beta on the same Ubuntu machine that I have mapserv 6.4 installed on. But both versions are using libmapserver.so so depending on what I have in my ldconfig path it's finding the 6.4 version lib or the 7beta ib. Is there an easier

Re: [mapserver-users] building php mapscript 7 beta

2015-02-16 Thread Richard Greenwood
I put libmapserver.so.7.1-dev in a non-standard location and forgot to put the path in ldconfig. I've forgotten this often enough that I should know by now. Rich On Sun, Feb 15, 2015 at 7:25 PM, Richard Greenwood richard.greenw...@gmail.com wrote: I'm getting the error below when trying

[mapserver-users] mapserv 7.0 and gif

2015-02-12 Thread Richard Greenwood
Very exciting to see the 7.0 beta! So I built it and satisfied the gif dependency. I define a gif OUTPUTFORMAT definition in my map file, I request a map with map_imagetype=image/gif but I get a PNG. So is gif support truly gone in 7.0? And if so, it seems a little misleading to have a libgif

Re: [mapserver-users] FW: [mapserver-dev] Motion: Retire SDE Support for MapServer 7.0

2015-02-10 Thread Richard Greenwood
Not being on the PSC my vote doesn't mean anything, but 7.0 certainly seems like the time to cut the cord on SDE. Rich On Tue, Feb 10, 2015 at 2:34 PM, Lime, Steve D (MNIT) steve.l...@state.mn.us wrote: Looking for a bit broader input on this idea. OGR supports SDE too so that's another

Re: [mapserver-users] old/new Symbology

2015-01-15 Thread Richard Greenwood
I don't think that functionality exists in QGIS 2.7. I don't think it has existed since about QGIS 2.0. On Wed, Jan 14, 2015 at 9:24 AM, Maiorano Pasquale pasquale.maior...@ssi.it wrote: Dear Sirs, Is anyone able to tell me how to set the *old symbology* instead of the new one on the QGIS

  1   2   3   >