Re: [mapserver-users] wms

2015-11-26 Thread John Abraham
Don't forget to remove  the =WMS=1.1.1=GetCapabilities
From the url before giving it to qgis

--
John Abraham

Sent from my iPhone, please excuse any typos. 

> On Nov 25, 2015, at 11:30 PM, rishi <rish...@gmail.com> wrote:
> 
> =WMS=1.1.1=GetCapabilities
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] wms

2015-11-24 Thread John Abraham
You are not normally supposed to include the other parameters 
(=WMS=1.1.1=GetCapabilities) when you are adding a 
WMS/WFS URL to QGIS.  You specify the service and version in the QGIS dialog 
box instead.  QGIS will append those parameters for you, and query the 
GetCapabilities for you, and provide you with a list of options.  After you 
select a layer to include, QGIS will query without the GetCapabilities to 
retrieve the actual map images, based on what it finds when it did the 
GetCapabilities query.

So, try 
http://localhost:8085/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wmssample.map

(In fact when you are working with other GIS packages it is sometimes even a 
problem to include the ?map=  parameter explicitly in the URL.  There's some 
approach with Apache Rewrite rules or mapserver configuration files or 
something like that to tell mapserver the name of the mapfile without having it 
as a parameter in the URL.  I can't find the documentation on that right now, 
but I didn't look too hard.  It seems the normal use case is to have a public 
facing URL and then your different feature layers are all defined in the same 
mapfile that's hidden from the user.  Anyway, my use case has hundreds of 
dynamically generated mapfiles, and QGIS never seems to have a problem with 
having the ?map= in the URL.)

As the other person mentioned, try to avoid putting the drive letter "c://" in 
the URL. It's just confusing to everyone to have a drive letter in the middle 
of a url.

Also, in your email below I see a space before the word map.  Make sure that's 
not there in reality.  " map" might not be recognized as the same parameter 
name as "map" 

--
John Abraham
j...@hbaspecto.com
403-232-1060

> On Nov 24, 2015, at 12:24 AM, rishi <rish...@gmail.com> wrote:
> 
> hi all
> 
> my wms url is
>  http://localhost:8085/cgi-bin/mapserv.exe 
> <http://localhost:8085/cgi-bin/mapserv.exe>? 
> map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities
> 
> when i hit the above url it is downloading the mapserv.exe then i am changing 
> .exe to .txt then i can able to see xml file
> 
> but when i am trying to add the above url in qgis, map is not displaying also 
> i am getting error as document is in invalid format.
> 
> if i hit the url  http://localhost:8085/cgi-bin/mapserv 
> <http://localhost:8085/cgi-bin/mapserv>? 
> map=c://ms4w/apps/webgis/wmssample.map=WMS=1.1.1=GetCapabilities
>  
> without .exe the it is showing error as The requested URL /cgi-bin/mapserv 
> was not found on this server.
> 
> please tell me how to resolve the issue
>  
> 
> ___
> 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

Re: [mapserver-users] WFS filter creates a query using a number instead of text

2015-02-27 Thread John Abraham

 On Feb 26, 2015, at 11:55 PM, Rahkonen Jukka (MML) 
 jukka.rahko...@maanmittauslaitos.fi wrote:
 
 You can also try to add
 
 gml_[item name]_type into the layer metadata
 
I have to add gml_[item name]_type in all my map files, to make them work as 
wfs in my context. 

--
John Abraham

Sent from my iPhone, please excuse any typos.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapServer WFS/ArcGIS 10.1

2013-02-07 Thread John Abraham
I've created a wiki page about using the mapserver WFS with ArcGIS:

https://github.com/mapserver/mapserver/wiki/WFS-Server-working-with-ArcGIS-Data-Interoperability-Extensions

Steve, there's not much else in my mapfile other than what's on the wiki page.  
I have a couple of include statements that include other layers (some roads 
for context, some barcharts for the WMS), but the example layer is the one that 
feeds data properly to the WFS clients. I'll be happy to send you the full 
mapfile if you still need it, but I don't want to post all the extra detail on 
the wiki.  Please update the wiki if you learn more.

--
John Abraham
j...@hbaspecto.com
403-232-1060

On Feb 7, 2013, at 5:08 AM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote:

 John I think it would be great if you took the time to create a Serving
 data through OGC/MapServer to ArcGIS 10 page on our wiki
 (https://github.com/mapserver/mapserver/wiki).  You can add
 screen-captures, mapfile snippets, or anything your heart desires.  For
 an example see
 https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows
 
 Thanks!
 
 -jeff
 
 
 
 -- 
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.com/
 
 On 13-02-06 8:35 PM, John Abraham wrote:
 I just responded about how the double types need to be xsd:double.  But
 now I'm remembering that was the second problem I had, to allow ArcGIS
 to actually do something with the values it was getting.  Before that, I
 struggled for a long time with a problem much more similar to the one
 you describe.  
 
 I can't remember how I solved the first problem, but would you like a
 copy of a map file that actually works with ArgGIS data interoperability
 extension?  I now have a working web app that generates such map files
 on-the-fly based on user-requested data.
 
 --
 John Abraham
 j...@hbaspecto.com mailto:j...@hbaspecto.com
 403-232-1060
 
 On Feb 6, 2013, at 3:55 PM, Lime, Steve D (MNIT)
 steve.l...@state.mn.us mailto:steve.l...@state.mn.us wrote:
 
 Anyone had any luck displaying a MapServer-based WFS service
 (MapServer 6.2) in ArcGIS 10.1 via the data interoperability
 extension? I can get ArcCatalog to list layers from a service so at
 least some GetCapabilities parsing is working fine but can’t get
 features to be recognized. I end up with a “NoGeometry” feature class.
 Documentation is a tad sparse.
 
 Service works great in QGIS 1.8.
 
 Steve
 
 ___
 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


Re: [mapserver-users] MapServer WFS/ArcGIS 10.1

2013-02-06 Thread John Abraham
I have it working after struggling for a few days.  A big part of it was that 
the mapserver documentation didn't specify the right string for double/float 
types.  The GML type needs to be xsd:double.  

I filed a ticket to improve the mapserver documentation on this, not sure if 
that ticket went anywhere.

Try that and copy me personally on any followup to the list.

--
John Abraham
j...@hbaspecto.com

On Feb 6, 2013, at 4:49 PM, Jeff McKenna jmcke...@gatewaygeomatics.com wrote:

 On 13-02-06 6:55 PM, Lime, Steve D (MNIT) wrote:
 Anyone had any luck displaying a MapServer-based WFS service (MapServer
 6.2) in ArcGIS 10.1 via the data interoperability extension? I can get
 ArcCatalog to list layers from a service so at least some
 GetCapabilities parsing is working fine but can’t get features to be
 recognized. I end up with a “NoGeometry” feature class. Documentation is
 a tad sparse.
 
 
 Interesting Steve, have you checked Apache's access_log on your
 MapServer machine to see the exact request being sent?  That might give
 us a hint of the Arc magic going on.
 
 -jeff
 
 
 
 
 -- 
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.com/
 ___
 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


Re: [mapserver-users] MapServer WFS/ArcGIS 10.1

2013-02-06 Thread John Abraham
I just responded about how the double types need to be xsd:double.  But now I'm 
remembering that was the second problem I had, to allow ArcGIS to actually do 
something with the values it was getting.  Before that, I struggled for a long 
time with a problem much more similar to the one you describe.  

I can't remember how I solved the first problem, but would you like a copy of a 
map file that actually works with ArgGIS data interoperability extension?  I 
now have a working web app that generates such map files on-the-fly based on 
user-requested data.

--
John Abraham
j...@hbaspecto.com
403-232-1060

On Feb 6, 2013, at 3:55 PM, Lime, Steve D (MNIT) steve.l...@state.mn.us 
wrote:

 Anyone had any luck displaying a MapServer-based WFS service (MapServer 6.2) 
 in ArcGIS 10.1 via the data interoperability extension? I can get ArcCatalog 
 to list layers from a service so at least some GetCapabilities parsing is 
 working fine but can’t get features to be recognized. I end up with a 
 “NoGeometry” feature class. Documentation is a tad sparse.
  
 Service works great in QGIS 1.8.
  
 Steve
  
 STEVE LIME  | DATA  APPLICATIONS MANAGER
 MN.IT SERVICES @ MNDNR
 651-259-5473 (w)  |  651-297-4946 (f) |  steve.l...@state.mn.us
 image002.jpg
 Information Technology for Minnesota Government   |   mn.gov/oet
  
  
 ___
 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


Re: [mapserver-users] python scripting and layers

2012-05-31 Thread John Abraham
We have a django script (in python) that writes out the map file based on what 
the web user requested.  We end up with a mapfile for almost every request but 
they are small and hard drives are cheap so it's been ok.

--
John Abraham

On May 29, 2012, at 10:53 PM, Jessica Clarke wrote:

 Hi all,
 I'm just playing around with some ideas at the moment, so I'm not sure if 
 this will make sense...
  
 Is it possible to use a python script to add a layer to an existing mapfile?
  
 I have an appliaction that sends a request to mapserver for a map, but I want 
 to be able to add a related shape to the map if the user asks for it.
  
 I'm trying to avoid re-writing all the mapfiles to allow for this (there are 
 30ish)...
  
 Any help or direction would be appreciated, 
 Jess
  
  
  
 Jessica Clarke
 GIS Infrastructure Officer
 
 Forestry Tasmania
 79 Melville Street
 Hobart Tas 7000
 (03) 6235 8197
  
 Growing tomorrow's high conservation value forests ‑ Check this out:
 http://www.youtube.com/watch?v=wP6XCailI‑A
 
 -
  
 This transmission is intended solely for the person or organisation to whom 
 it is addressed.
 
 It is confidential and may contain legally privileged information.
 
 If you have received this transmission in error, you may not use, copy or 
 distribute it.
 
 Please advise us by return e-mail or by phoning 61 3 6235 8333 and 
 immediately delete the transmission in its entirety.
 
 We will meet your reasonable expenses of notifying us.
 
 Despite our use of anti-virus software, Forestry Tasmania cannot guarantee 
 that this transmission is virus-free.
 
 
 
 ___
 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] Barcharts missing

2012-05-02 Thread John Abraham
I have a bar charts layer, and some of the bar charts don't show up.  
Strangely, when I'm using openlayers to display a zoom-and-pan map different 
bar charts go missing at different levels of zoom.  Is this a bug, or some 
feature?

Here's a bit of my mapfile:

MAP
NAME luzs-MAP
# Map image size
SIZE 1000 800
UNITS meters
EXTENT -85.338229 33.1785600011 -83.5057259973 34.5140960012
PROJECTION
init=epsg:4326
END

#TEMPLATEPATTERN 'mapserv_template*' 
  
# Background color for the map canvas -- change as desired
IMAGECOLOR 255 255 255
IMAGEQUALITY 95
IMAGETYPE agg

OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
END

skipping over to the bar charts layer definition:

LAYER
NAME years
TYPE CHART
CONNECTIONTYPE postgis

CONNECTION dbname='atlanta_db' host=localhost port=5433 
user='usrPostgres' password='usrPostgres'
DATA 'graph_point_geom FROM 
analysis.W01a_CA35DetResid_120501_170604_with_geom USING UNIQUE gid USING 
srid=4326'
PROCESSING CHART_TYPE=bar  
PROCESSING CHART_BAR_MINVAL=-0.180638991133
PROCESSING CHART_BAR_MAXVAL=154895170.852
PROCESSING CHART_SIZE=30 50

STATUS ON 
CLASS
NAME sum2005demand
STYLE
SIZE [sum2005demand]
COLOR 189 163 26
END 
END 


CLASS
NAME sum2006demand
STYLE
SIZE [sum2006demand]
COLOR 235 7 177
END 
END 
etc.

--
John Abraham
j...@hbaspecto.com___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users