Re: [mapserver-users] hide mapserv? messages

2014-01-28 Thread John Smith
guys,

this doesn't work. any help?

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/cgi-bin/mapserv\?*$ [NC]
RewriteRule /* /403.html [L,F]

thks, jzs


On Tue, Jan 7, 2014 at 6:37 PM, John Smith jayzee.sm...@gmail.com wrote:
 guys,

 you know how you get a message when you go to ../cgi-bin/mapserv? etc:

 No query information to decode.. etc.

 well, what do you do with such messages on your prod w*s servers? do
 you hide them? if so, how?

 they are getting flagged as xss etc errors and i need a way to handle
 them (mod_rewrite that sh*t?).

 thks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] hide mapserv? messages

2014-01-28 Thread John Smith
see http://htaccess.madewithlove.be/


On Tue, Jan 28, 2014 at 2:51 PM, John Smith jayzee.sm...@gmail.com wrote:
 guys,

 this doesn't work. any help?

 RewriteEngine on
 RewriteCond %{REQUEST_URI} ^/cgi-bin/mapserv\?*$ [NC]
 RewriteRule /* /403.html [L,F]

 thks, jzs


 On Tue, Jan 7, 2014 at 6:37 PM, John Smith jayzee.sm...@gmail.com wrote:
 guys,

 you know how you get a message when you go to ../cgi-bin/mapserv? etc:

 No query information to decode.. etc.

 well, what do you do with such messages on your prod w*s servers? do
 you hide them? if so, how?

 they are getting flagged as xss etc errors and i need a way to handle
 them (mod_rewrite that sh*t?).

 thks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] hide mapserv? messages

2014-01-07 Thread John Smith
guys,

you know how you get a message when you go to ../cgi-bin/mapserv? etc:

No query information to decode.. etc.

well, what do you do with such messages on your prod w*s servers? do
you hide them? if so, how?

they are getting flagged as xss etc errors and i need a way to handle
them (mod_rewrite that sh*t?).

thks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [OpenLayers-Users] unable to display a geojson layer from mapserver url in openlayers

2013-11-14 Thread John Smith
using openlayers 2.7 and mapserver 6.4.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] [OpenLayers-Users] unable to display a geojson layer from mapserver url in openlayers

2013-11-13 Thread John Smith
i am calling, like so:

(from
http://stackoverflow.com/questions/10368726/how-to-read-external-geojson-file-from-openlayers
)
geojson_layer = new OpenLayers.Layer.Vector(GeoJSON, {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: /cgi-bin/app?map=...ouputformat=geojson,
format: new OpenLayers.Format.GeoJSON()
})
});

this may be unrelated but the url above creates a valid geojson however
both http://www.jsoneditoronline.org/ and http://geojson.io/ throw the
following error:

Parse error [ coordinates: [[ ]] ] Expecting 'EOF', '}', ',', ']', got ':'

(i guess i can always edit my tmpl (
http://osgeo-org.1560.x6.nabble.com/mapserver-5-6-CGI-output-GeoJSON-format-td4890884.html)
but it seems unrelated.)

thks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapserver 6.4.0 can't create geom with postgis 2.1.0?!

2013-11-08 Thread John Smith
guys,

looks like mapserver 6.4.0 can't create geom with postgis 2.1.0. can
someone confirm that before i rollback to ms 6.2.1 or before :( is there
any other solution?

just trying to connect ms 6.4.0 with pg 2.1.0 but getting the following
error:

WARNING:  ST_Force_2d signature was deprecated in 2.1.0. Please use
ST_Force2D
CONTEXT:  SQL function st_force_2d during startup

both functions exist under public  functions but ST_Force_2d creates this
error while ST_Force2D is unused. see
http://stackoverflow.com/questions/19000753/mapserver-6-2-and-deprecated-st-force-2d
https://github.com/mapserver/mapserver/pull/4803 (mappostgis.c,
mappostgis.h) and http://postgis.net/docs/ST_Force_2D.html.

thks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapserver 6.4 binary?

2013-09-23 Thread John Smith
http://www.gisinternals.com/sdk/ still shows
release-1600-x64-gdal-1-10-mapserver-6-2.

is release-1600-x64-gdal-1-10-mapserver-6-4 available anywhere?

thanks tamas, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] styling wfs in openlayers 2.7?

2013-09-19 Thread John Smith
(sorry for the cross-posting but never been able to subscribe to
[openlayers-users], maybe you can help)

-- Forwarded message --
From: John Smith jayzee.sm...@gmail.com
Date: Thu, Sep 19, 2013 at 11:48 AM
Subject: [OpenLayers-Users] styling wfs in 2.7?
To: openlayers-us...@lists.osgeo.org
Cc: openlay...@metacarta.com

Protocol.WFS is not supported in 2.7 and this doesn't work. any help
appreciated.

// create stylemap
var my_style = new OpenLayers.StyleMap({
 default: new OpenLayers.Style({
  pointRadius: 10,
  fillColor: #ffcc66,
  strokeColor: #ff9933,
  strokeWidth: 2,
  graphicZIndex: 1
 }),
 select: new OpenLayers.Style({
  fillColor: #66ccff,
  strokeColor: #3399ff,
  graphicZIndex: 2
 })
});

// create layer and apply stylemap
my_layer = new OpenLayers.Layer.WFS(info,
 /cgi-bin/info?crs=crs:84,
 { styleMap: my_style },
 { typename: 'search' },
 { extractAttributes: true }
thanks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapserver minimum installation

2013-09-06 Thread John Smith
what does installing mapserver mean (on windows, so no apt-get)? i don't
mean also installing server, database or language. not even mapcache if
that's possible. no optional libraries either and no changing environment
variables. just plain vanilla mapserver.

does it mean simply dropping mapserv.exe in apache's cgi-bin folder along
with its dlls?

http://mapserver.org/mapcache/install.html

jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] alternatives to ms4w?

2013-07-11 Thread John Smith
guys,

are there any recommendations between ms4w and osgeo4w. i guess it depends
on use case but for typical uses?

https://encrypted.google.com/?q=ms4w+vs+osgeo4w

as for my case, i'd like to use the latest release of apache, postgis and
php with mapserver, and so just looking to drop-in ms on windows.

it seems osgeo4w is heavier than ms4w. why not combine these efforts.

thanks, jzs



On Sun, Jun 30, 2013 at 12:31 PM, Siki Zoltan s...@agt.bme.hu wrote:

 Dear John,

 check osgeo4w at http://trac.osgeo.org/osgeo4w/

 Regards,
 Zoltan


 On Sat, 29 Jun 2013, John Smith wrote:

  guys,

 are there any good alternatives to ms4w at
 http://www.maptools.org/ms4w/?**page=downloads.htmlhttp://www.maptools.org/ms4w/?page=downloads.html.
 its last stable base
 package is over a year old from may 26, 2012, and there is no timeline
 given about its next release.

 thanks, jzs


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] alternatives to ms4w?

2013-07-11 Thread John Smith
thanks michael and marco.

ms4w does include apache and php though. in the past, i removed its apache
and php, and installed their latest releases separately. just looking to
avoid doing that again. at a minimum, get a x64 windows binary of ms4w. for
now, http://vbkto.dyndns.org/sdk/ looks like a good bet.

jzs



On Thu, Jul 11, 2013 at 10:04 AM, Marco Afonso mafonso...@gmail.com wrote:

 Hi,

 apache, postgis and php with mapserver,

 You are looking for a sort of GeoWAMP package ... :) That would be good
 for MapIgniter too. Currently I recom to install ms4w and postgis... take a
 look at http://mapigniter.com/wiki/install-windows


 2013/7/11 Smith, Michael michael.sm...@maine.gov

  I am curious about this myself.  In my research, it seems that both
 packages are using MapServer versions that are fairly out of date.

 ** **

 MS4W hasn’t been updated in over a year and is at MapServer 6.0.3

 OSGeo4W reports it is using an even older version 5.0.x.

 ** **

 Meanwhile MapServer itself is at 6.2.1 and counting.

 ** **

 One big difference in the two packages is that OSGeo4W is a bunch of OS
 GIS tools including things like GRASS and QGIS, while MS4W is just
 MapServer.  We use MS4W extensively and find it very easy to install and
 configure compared to OSGeo4W.  MS4W really is the ‘drop-in’ approach and
 we can typically set up a server in about 30 seconds.

 ** **

 ===
 *Michael Smith MS GISP*
 State GIS Manager, Maine Office of GIS
 State of Maine, Office of Information Technology
 *michael.smith _at_ maine.gov* 207-215-5530

 Board Member, Maine GeoLibrary
 Education Chair, Maine GIS Users Group
 State Rep, National States Geographic Information Council


 State House Station 145
 51 Commerce Drive
 Augusta, ME 04333-0145
 69o 47' 58.9W  44o 21' 54.8N 

 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *John Smith
 *Sent:* Thursday, July 11, 2013 9:29 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] alternatives to ms4w?

 ** **

 guys,

 are there any recommendations between ms4w and osgeo4w. i guess it
 depends on use case but for typical uses?

 https://encrypted.google.com/?q=ms4w+vs+osgeo4w

 as for my case, i'd like to use the latest release of apache, postgis and
 php with mapserver, and so just looking to drop-in ms on windows.

 it seems osgeo4w is heavier than ms4w. why not combine these efforts.

 ** **

 thanks, jzs

 ** **

 On Sun, Jun 30, 2013 at 12:31 PM, Siki Zoltan s...@agt.bme.hu wrote:***
 *

 Dear John,

 check osgeo4w at http://trac.osgeo.org/osgeo4w/

 Regards,
 Zoltan



 On Sat, 29 Jun 2013, John Smith wrote:

 guys,

 are there any good alternatives to ms4w at
 http://www.maptools.org/ms4w/?page=downloads.html. its last stable base
 package is over a year old from may 26, 2012, and there is no timeline
 given about its next release.

 thanks, jzs

 ** **

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




 --
 Regards,
 Marco Afonso


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] alternatives to ms4w?

2013-06-29 Thread John Smith
guys,

are there any good alternatives to ms4w at
http://www.maptools.org/ms4w/?page=downloads.html. its last stable base
package is over a year old from may 26, 2012, and there is no timeline
given about its next release.

thanks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] wms and labels (and google earth)

2013-05-07 Thread John Smith
guys,

1. i am troubleshooting a wms server (1.0.8) on mapserver (4.8) - i
know but i can't upgrade either :( anyway, srs=epsg:4326 returns a map
with out labels, but crs=crs:84 returns a map and labels - i can live
with that. but when i overlay the map on google maps, no labels are
shown with either srs or crs.

2. also, i can't add it as a network link in google earth - no data is shown.

at my wit's end - any help with either?

thks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver.org sample ...

2009-01-14 Thread John Smith
personally don't prefer openlayers except for its drag feature.
openlayers appears tied to py. map rendered using layer = new
OpenLayers.Layer.MapServer( map, /cgi-bin/mapserv.exe, {map:
'/openlayers.map'} ); is sometimes jagged at outer zoom (with fewer
dpi). may just need to tune but i agree mapserver.org could feature
many maps - openlayers, geomoose. my 2 cents.
thks, jzs

On Wed, Jan 14, 2009 at 12:13 PM, Bob Basques
bob.basq...@ci.stpaul.mn.us wrote:

Chris,

The biggest piece I see GeoMoose contributing to, is the CGI
calling methods.  GeoMoose makes extensive use of the ImageMap
building and Query Mechanisms available with MapServer, not just the
image rendering.  Although the stacking of the images inside of the
GeoMoose interface is and has been a novel way of presenting the
MapServer contructs (IMO).  OpenLayers does this as well to some
degree, but I believe the GeoMoose interface provides a greater degree
of end user control.

I'm interested in promoting more than just MapServer image
rendering.  Using Mapserver's CGI capabilities with a Client LIB is
pretty much the way I've used MapServer since starting up with it over
ten years ago.  The imagemap (templating) and Query capabilities are
just as important as the image rendering.  The teaching reference
below, was aimed squarely at the idea of using MapServer via it's CGI
calling structure, which I've always thought should be demo-ified in
some location.  But since MapServer (and it's community) hasn't in the
past had any particular interest in ratifying a client for use, I
never pursued the idea.  But now, with that nice OpenLayers window on
the MapServer page, the sky's the limit so to speak, as far as setting
up demos and including them in the MapServer site, or at least it
seems like it should be.

:c)

bobb

 Christopher Schmidt crschm...@metacarta.com 01/14/09 10:37 AM 
On Wed, Jan 14, 2009 at 09:21:38AM -0600, Bob Basques wrote:
 All,

 The only reason I brought it up at all, was that I was playing around
 with Openlayers myself this week.

 I pretty much copied the Demo from the MapServer website.  Sounds like
 that was the wrong to go  :c)

Absolutely. The demo on the MapServer site is using a layer that is
generally not needed in any application -- at least not until you're
looking for something that can be deployed without a MapServer 'server'
in the mix.
 Benefits of GeoMoose (Main ones) for the normal user.

* Fast (because of MapServer tuning.).  Smaller footprint

The dem on the MapServer main site seems pretty fast to me. Much faster
than any non-cached demo I've seen. Are you saying that GeoMoose has
tuned MapServer t such an extent that it is faster to render images than
it is to serve pre-rendered tiles that demonstrate MapServer's rendering
skills?

* Handles many layers with ease.  The limit is the client hardware,
  and the control is given to the user as to how many to display.

This is a GeoMoose benefit over other client software, but I don't see
how it makes a better demo of MapServer's rendering capabilities.

* The publishing of the data can be distributed, down to the layer
  level, including the contents of the popups.  Each layer can be
  managed separately without consequence to the rest of the
  interface, if it breaks, only that layer is not available.

This is a GeoMoose benefit over other client software, but I don't see
how it makes a better demo of MapServer's rendering capabilities.

* More interface user Control, layer fading, on/off, stacking order,
  popup on/off.

This is a GeoMoose benefit over other client software, but I don't see
how it makes a better demo of MapServer's rendering capabilities.

* And it's all a client lib as well, just like Openlayers.  Closer
  than you think.

This is a GeoMoose benefit over other client software, but I don't see
how it makes a better demo of MapServer's rendering capabilities.

* If I had to teach MapServer request strategies, I would use
  MapServer + GeoMoose + Firebug to do it.  GeoMoose uses the CGI
  functionality for images, imagemaps, and querying.

I don't knwo what you mean by this, so I can't comment on it.

 Not that I'm trying to defend GeoMoose.  Just wanted to know how to join
 in on popularizing MapServer.

GeoMoose has many advantages over other client software, if you are
demonstrating client software. The MapServer homepage should be a quick,
simple, easy to use demonstration of MapServer capabilties -- in this
case, a pretty map. I can see an argument that the MapSerer homepage
should use a static image instead, but I think that is a less effective
demonstration of the pretty rendering. I do not think that changing from
OpenLayers givves a better demonstration 

[mapserver-users] [UMN_MAPSERVER-USERS] how many floating-points must a server hardware support for mapserver installation?

2008-03-19 Thread John Smith
guys,
how many floating-points must a server hardware support for mapserver
installation? does mapserver, postgresql or postgis do much
floating-point math to make a difference?
thks, jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: VS: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables toshp2img?

2008-03-18 Thread John Smith
thks so what's the difference between mapserv.exe and shp2img.exe? i
find the naming a little confusing (map2img? mapserver_cli?)
jzs

On Mon, Mar 17, 2008 at 6:51 PM, Stephen Woodbridge
[EMAIL PROTECTED] wrote:
 You can do it with the mapserv executable from the commandline via

 mapserv QUERY_STRING='map=/path/tofile.mapvalue=foovalue2=bar...'

 -Steve W

 John Smith wrote:
  thks but i fail to see the benefit of that- does shp2img.exe know what
  to do with these inserted variables?
 
  i want to use variables in the map file for a postgis query, like
  %var%. passing [-m ...map?value=%var%] throws a msEvalRegex() error.
  jzs
 
  On Mon, Mar 17, 2008 at 4:38 PM, Rahkonen Jukka
  [EMAIL PROTECTED] wrote:
  If you use Windows, make a batch file, let's say run.bat
  shp2img -m ...map -o ...gif %1% %2%
 
  Then send from command line:
 
  run.bat variable1 variable2 (they will be inserted in place of %1 and %2)
 
  -Jukka Rahkonen-
 
  -Alkuperäinen viesti-
  Lähettäjä: [EMAIL PROTECTED] puolesta: John Smith
  Lähetetty: ma 17.3.2008 22:33
  Vastaanottaja: mapserver-users@lists.osgeo.org
  Aihe: [mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables 
  toshp2img?
 
  can i pass variables to shp2img, say?
 
  shp2img -m ...map -o ...gif %variable1% %variable2%
 
  jzs
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] [UMN_MAPSERVER-USERS] can i pass variables to shp2img?

2008-03-17 Thread John Smith
can i pass variables to shp2img, say?

shp2img -m ...map -o ...gif %variable1% %variable2%

jzs
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users