Re: [mapserver-users] Location of msplugin_sde_91.dll - solved
Robert Sanson wrote: Hi Went through my map files and found it is in the PLUGIN section: # actual data pointer CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN CONNECTION esri-arcsde,port:5165,sde_crs,sansonr,password PLUGIN d:/ms4w/apache/specialplugins/msplugin_sde_91.dll DATA sde_crs.SDEADMIN.VP_VW,SHAPE We have just installed ms4w onto a D:\ drive on a new server. Trying to get SDE connectivity going. When trying to access a layer that uses SDE i get the following error: ServiceExceptionReport version=1.2.0 xsi:schemaLocation=http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd; ? ServiceException code=NoApplicableCode locator=mapserv msWFSGetFeature(): WFS server error. ms_error-code not found loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll msGetSymbol(): General error message. Can't load requested dynamic library: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll /ServiceException /ServiceExceptionReport Where is this location set so I can re-point to d:/ms4w/apache/specialplugins/msplugin_sde_91.dll? Many thanks, Robert You can see the documentation for SDE with MS4W in your local install at: /ms4w/README_INSTALL.txt, and also online at: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde You can also subscribe to the MS4W mailing list to ask configuration questions such as yours: subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users -- Jeff McKenna FOSS4G 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] spatial filter to WFS server
I wish to limit de spatial extent when serving a layer by WFS server. For example, The original extent of the layer is 0 0 1000 1000 and I want to filter the extent to 250 250 500 500. Is this possible? Thanks in advanded. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] spatial filter to WFS server
Then I fear it won't be possible with Mapserver, I don't even think WFS has something for this. The only way would be preprocessing your dataset before serving it out with WFS. You sometimes see this as a feature of OWS security systems, maybe Deegree OWSProxy can do it for you? Best regards, Bart Thaks, but that solution does not fit what I need :-( 2008/11/11 [EMAIL PROTECTED] You can set ows_extent, but there is no guarantee that a WFS client will honour this. Best regards, Bart I wish to limit de spatial extent when serving a layer by WFS server. For example, The original extent of the layer is 0 0 1000 1000 and I want to filter the extent to 250 250 500 500. Is this possible? Thanks in advanded. ___ 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] Pass parameters to mapfile
you'd use something like this: * in your mapfile: DATA the_geom from ( select * from customised_point AS f where user_id='%userid%' AND f.subcat_id IN (select subcat_id from subcat_info where maincat_id =0))AS foo USING UNIQUE gid you can add a regular expression for validating the %userid% string for your layer: metadata userid_validation_pattern [a-zA-Z]* end * the the wms url should include a userid=foo in it: wms[5] = new OpenLayers.Layer.WMS.Untiled(Customization, http://gis.rtbi-iitm.in/cgi-bin/mapserv?map=/var/www/html/customisation/mapfile/customNR.map; {'layers': NR_point,'transparent':true, 'userid':'foo'}, {'isBaseLayer':false} ); note that openlayers capitalizes the url params, so you should probably use %USERID% in your mapfile cheers, thomas On Fri, Nov 7, 2008 at 11:07, S.Reena [EMAIL PROTECTED] wrote: I am using the following data in my mapfile DATA the_geom from ( select * from customised_point AS f where user_id='userid' AND f.subcat_id IN (select subcat_id from subcat_info where maincat_id =0))AS foo USING UNIQUE gid I want the userid ( used in the above query) to be passed to map file at the time of layer creation something like this wms[5] = new OpenLayers.Layer.WMS.Untiled( Customization,http://gis.rtbi-iitm.in/cgi-bin/mapserv?map=/var/www/html/customisation/mapfile/customNR.map; + userid ,{'layers': NR_point,'transparent':true},{'layers': NR_polygon,'transparent':true},{'isBaseLayer':false} ); How to do that? Thanks in advance :) Cheers, Reena. -- View this message in context: http://www.nabble.com/Pass-parameters-to-mapfile-tp20377760p20377760.html Sent from the Mapserver - User mailing list archive at Nabble.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
[mapserver-users] Is it possible to take the last 3 chars from a string as labelitem
Hi, As in the subject. Is it possible to do a substr on a string like SQL can do. I use SDE for source and in the description there is a long string, but i only need the last 3 characters. I can't add column in the database so thats no option. I only have a sde host username and password. Can anyone help me? kind regards, Rob ter Haar ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Just starting out...
Closer investigation of the GeoTiff files produced by UKHO shows that although the cut out areas are white, they are all drawn with a different pixel index. That makes the whole job pretty simple to pull out the chart data. Now I'm fighting to get the MapServer Demo from the New User's documentation to work. It isn't acting like I expect and I'll probably start another thread about it after searching for others who have had the same frustrations that I'm having... Thanks! -- View this message in context: http://n2.nabble.com/Just-starting-out...-tp1481431p1485816.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] ms4w with MapServer Demo...
I've really tried to figure it out. I've searched the forum and I've only found one other person who had the exact same problem that I'm having - and no one ever responded to his posting. I've installed ms4w. It worked fine. As background, I'm barely familiar with Apache. I then downloaded the MapServer Demo which looks like a set of tutorial datasets based around something called MapServer Itasca Application - this is all from the MapServer New Users document. I'm now directed to place the workshop folder someplace in your web tree. Then you're supposed to edit index.html and view it in a local browser window. I put the workshop folder into the Apache/htdocs directory because I believe that puts it at the root of my localhost server. And in fact, when I load http://localhost/workshop/index.html, the html file gets loaded. The problem is that I can't seem to figure out how to edit the html file to have it point to the proper directories for the rest of the MapServer configuration. The things that need to be edited in the index.html file are: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP var snippet = IMAGEPATH '/usr/local/www/docs_maps/tmp/'; snippet += IMAGEURL '/tmp/'; and !-- EDIT THE FORM ACTION -- form name=demo method=GET action=/cgi-bin/mapserv50 onSubmit=configure() and !-- EDIT THESE HIDDEN VARIABLES -- input type=hidden name=map value=/usr/local/www/docs_maps/mapserver_demos/workshop-5.0/itasca.map input type=hidden name=program value=/cgi-bin/mapserv50 input type=hidden name=root value=/mapserver_demos/workshop-5.0 I've made scores of edits to those three sections. This is how I think they really should be: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP var snippet = IMAGEPATH '/workshop/tmp/'; snippet += IMAGEURL '/tmp/'; and !-- EDIT THE FORM ACTION -- form name=demo method=GET action=/cgi-bin/mapserv.exe onSubmit=configure() and !-- EDIT THESE HIDDEN VARIABLES -- input type=hidden name=map value=/workshop/itasca.map input type=hidden name=program value=/cgi-bin/mapserv.exe input type=hidden name=root value=/workshop Launching the index.html file produces: mLoadMap(): Unable to access file. (/workshop/itasca.map) The file htdocs/workshop/itasca.map does exist but it obviously isn't going through the Apache path to get there. What am I doing wrong? This is terribly embarrassing... -- View this message in context: http://n2.nabble.com/ms4w-with-MapServer-Demo...-tp1487301p1487301.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI 5.0?
Dear MapServer Users, Prior to MapServer 5.0, I could set the map scalebar size and intervals using CGI variables named map_scalebar_size and map_scalebar_intervals. After upgrading to 5.2.0, however, these variables are no longer recognized; I get an error saying loadScalebar(): Unknown identifier. Is it true that we can no longer reference map settings in this fashion? When I change these variables to map_scalebar=size+value+intervals+value it works, but this no longer fills in my template variables [map_scalebar_size] and [map_scalebar_intervals]. If I try using a template variable with [map_scalebar] instead, the value (e.g. size+width+height+intervals+value) doesn't seem to be interpreted by MapServer since the scalebar settings never get subsequently modified. What am I doing wrong? Thanks for any insights! Cheers, -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 Without geography, you're nowhere! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI 5.0?
HI, http://mapserver.gis.umn.edu/docs/reference/mapfile/scalebar/?searchterm=sca lebar check above url. Thanks, Venkat -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Maurer Sent: Wednesday, November 12, 2008 5:50 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI 5.0? Dear MapServer Users, Prior to MapServer 5.0, I could set the map scalebar size and intervals using CGI variables named map_scalebar_size and map_scalebar_intervals. After upgrading to 5.2.0, however, these variables are no longer recognized; I get an error saying loadScalebar(): Unknown identifier. Is it true that we can no longer reference map settings in this fashion? When I change these variables to map_scalebar=size+value+intervals+value it works, but this no longer fills in my template variables [map_scalebar_size] and [map_scalebar_intervals]. If I try using a template variable with [map_scalebar] instead, the value (e.g. size+width+height+intervals+value) doesn't seem to be interpreted by MapServer since the scalebar settings never get subsequently modified. What am I doing wrong? Thanks for any insights! Cheers, -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 Without geography, you're nowhere! ___ 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