[mapserver-users] Re: what is the way to get feature info inmapserver?
Thanks Jukka, but the problem was that I'm using SQL Server 2008, without appling the patch resolved with this ticket http://trac.osgeo.org/mapserver/ticket/3058 As I said in my last post, I'm not sure I can overwrite the msplugin_mssql2008.dll to resolve. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5368561.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
Re: RE [Polluriel potentiel] [mapserver-users] what is the way to get feature info in mapserver?
My server side problem was a resolved issue with Sql Server 2008. http://osgeo-org.1803224.n2.nabble.com/Getfeatureinfo-and-MSsql-2008-server-tt4631781.html#a4631781 Now I'm trying to upgrade the mapserver version, but I've got some doubts about the best way to upgrade. Since I've made some manual changes to some proj files, I wondered if I can upgrade only the msplugin_mssql2008.dll that I've originally installed through the MS4W package. thanks everybody for the great support :-) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5368531.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] Re: what is the way to get feature info inmapserver?
I'm sorry, I made I banal mistake in the URL in the CGI request and parameter passing. Now I can see the browser reply to my request and I'm finding errors and missing required parameters. I'll let you know when I'll resolve all of them. Thanks, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5354446.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] Re: what is the way to get feature info inmapserver?
I tried to send the request directly: http://mymapserver.com/mapserverms4w/map=mapserv.exe?myMapFile.map&REQUEST=GetFeatureInfo&INFO_FORMAT=plain/text&QUERY_LAYERS=CG_GEO_PARCELSE&I=120&J=120&VERSION=1.3.0 But I'm not sure about the parameter passed (I and J as pixel X,Y position on the browser, but map is not present if I make manually the request!) Anyway, the response is 404 - page not found and IIS Log is this: #Software: Microsoft Internet Information Services 5.1 #Version: 1.0 #Date: 2010-07-30 09:36:47 #Fields: time c-ip cs-method cs-uri-stem sc-status 09:36:47 127.0.0.1 GET /mapserverms4w/map=mapserv.exe 404 09:36:47 127.0.0.1 GET /favicon.ico 404 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5354408.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] what is the way to get feature info in mapserver?
Hi to all, I'm trying to obtain information by clicking on the map and display it on a popup window with Openlayers. First of all, I added to my mapfile the template reference that is this: http://www.w3.org/1999/xhtml";> [COD] [FOG] [NUM] (where COD, FOG and NUM are the name of the fields on the same table where the spatial information of my layer are) then I added to the LAYER section this: ... METADATA "wms_title" "Parcels" "wms_info_format" "text/plain" END TEMPLATE "..\template\Parcel.html" ... then I worked on OpenLayer to make the WMS getFeatureInfo call. I'm sure I'm forgiving or misunderstanding something important, but I can't find what.. Has anybody suggestions or tutorial to do this working? thanks again, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.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] Re: project on the fly through mapserver or openlayers?
Thank you for your replies, Now I'm working with both client and server side over the same machine, I will do some tests from other clients to understand how can be balanced the load between client and server, and also about preprocessing all data without reproject at run time. Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/project-on-the-fly-through-mapserver-or-openlayers-tp5291876p5293142.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] project on the fly through mapserver or openlayers?
Hi to all, I'm using MapServer and OpenLayers in my Webgis application. I'm at the first steps, and I was thinking about this... If I'm not going bad, both OpenLayers and Mapserver have on the fly project transformation functionality. With Mapserver you can reproject also raster images, that OpenLayers can't. If all this is correct, I wondered if, for performance issues, it's better to reproject vectorial drawings with MapServer or OpenLayers. thanks to all, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/project-on-the-fly-through-mapserver-or-openlayers-tp5291876p5291876.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] Re: Labeling problem
I understand where I was wrong: 1 - I missed to delcare the fontset used that in my case is: FONTSET "c:\Windows\Fonts\font.list" This has to be defined at MAP level 2 - the file font.list is the same as in http://mapserver.org/mapfile/fontset.html Specifiing the fonts that WindowsXP has installed, and specifiing the right path it works fine! -- View this message in context: http://n2.nabble.com/Labeling-problem-tp4798590p4808835.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] Labeling problem
Hi, I have a problem labeling in true type. This is an extract from my WORKING mapfile, using TYPE BITMAP. If I substitute TYPE BITMAP with TYPE truetype, It still works, but no label is shown.. Any idea? thanks, Kiks LAYER NAME "CG_GEO_TESTI" TYPE ANNOTATION STATUS OFF CONNECTIONTYPE PLUGIN PLUGIN "C:\programmi\ms4w\Apache\specialplugins\msplugin_mssql2008.dll" CONNECTION "Driver={SQL Server Native Client 10.0};Server=localhost\SQLEXPRESS;Database=GIS;Trusted_Connection=yes;" DATA "G_POSIZIONE FROM CG_GEO_TESTI WITH(INDEX(SPATIAL_CG_GEO_TESTI)) USING UNIQUE ID_TESTO USING SRID=3003" LABELITEM 'TESTO' METADATA "wms_title" "Testi catastali" "gml_include_items" "all" END DUMP TRUE PROJECTION "init=epsg:3003" END OPACITY 100 MAXSCALEDENOM 1 MINSCALEDENOM 2000 CLASS STYLE COLOR 0 0 0 OUTLINECOLOR 255 255 255 WIDTH 3 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE BITMAP OUTLINEWIDTH 5 FONT "georgia" # TYPE truetype # SIZE 12 # ANGLE [ANGOLO] POSITION AUTO PARTIALS FALSE END END END -- View this message in context: http://n2.nabble.com/Labeling-problem-tp4798590p4798590.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] Re: OSM2 SqlServer 2008
I manage to install and import data to PostGIS. Now I'm trying to transfer data with ogr2ogr, but I have some problems to understand the syntax: I have a System ODBC data source called CG. I tried to run: ogr2ogr -f "ODBC:CG" -t_srs "EPSG:3003" PG:"host=localhost user=postgres dbname=osm password=postgres port=5432" -update -lco OVERWRITE=yes -nlt NONE But it is not accepted. I don't understand where I'm wrong thanks for your help, Kiks -- View this message in context: http://n2.nabble.com/OSM2-SqlServer-2008-tp4716063p4717357.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] OSM2 SqlServer 2008
...I wondered if there is an utility like OSM2pgsql that can import OSM data directly to SqlServer 2008. Has anybody any suggestion about it? Can I import data to PostGIS and then from PostGIS transfer data to SqlServer? thank to all, Kiks -- View this message in context: http://n2.nabble.com/OSM2-SqlServer-2008-tp4716063p4716063.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] Re: binding color of polygons to a specific field in MSSQL Server 2008
Thanks Tamas, I added a field call COLOR VARCHAR(15) filled with the string color value for every item (es. '255 255 255'), and it works fine. -- View this message in context: http://n2.nabble.com/binding-color-of-polygons-to-a-specific-field-in-MSSQL-Server-2008-tp4633357p4633425.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] binding color of polygons to a specific field in MSSQL Server 2008
I have a table in MS SQL Server 2008 with many spatial records. They are correctly visualized with a WMS call. I woundered if it is possible for every polygon of that table to read the fill color from a specific field of the same table, just like you can do this with shape files as I read from the doc: ..."[Attribute] was introduced in version 5.0, to specify the item name in the attribute table to use for color values. The hard brackets [] are required. For example, if your shapefile‘s DBF has a field named “MYCOLOR” that holds color values for each record, your STYLE object for might contain: STYLE COLOR [MYCOLOR] OUTLINECOLOR 150 150 150 END" ... thanks to everybody, Kiks -- View this message in context: http://n2.nabble.com/binding-color-of-polygons-to-a-specific-field-in-MSSQL-Server-2008-tp4633357p4633357.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] msplugin_mssql2008.dll plugin and geometryCollection
I think that the issue in my previous post was a problem of "TYPE OF GEOMETRY". The shape file I have imported into Sql Server 2008 is a GeometryCollection: a single record with many Polygons. Is there any way to read the MultiPolygon element from MapServer? If not, does somebody know how can I extract the single element to the subelements that are embedded in it? thanks again, Kiks -- View this message in context: http://n2.nabble.com/msplugin-mssql2008-dll-plugin-and-geometryCollection-tp4631538p4631538.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] Re: msplugin_mssql2008.dll plugin seems to work but I obtain a blank image
thanks for the reply, but the sintax in the map file: DATA "geomField FROM geomTable USING OBJECTID USING SRID=3003" is not recognized from my Sql Server 2008: I tried to run a query in management studio like this: SELECT geomField FROM geomTable USING OBJECTID USING SRID=3003 but I get a sintax error, and I can't find reference to similar sintax. -- View this message in context: http://n2.nabble.com/msplugin-mssql2008-dll-plugin-seems-to-work-but-I-obtain-a-blank-image-tp4627179p4631408.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] msplugin_mssql2008.dll plugin seems to work but I obtain a blank image
Hi to all, I have imported in Sql Server 2008 spatial a shp file. Now, if I access the original shape file via WMS it works fine. This is the mapfile config relative to the working shp file: LAYER NAME "ptcp" TYPE POLYGON STATUS DEFAULT # CONNECTIONTYPE PLUGIN #PLUGIN "C:\programmi\ms4w\Apache\specialplugins\msplugin_mssql2008.dll" # CONNECTION "Driver={SQL Server Native Client 10.0};Server=localhost\SQLEXPRESS; Database=GIS;Trusted_Connection=yes;" # DATA "geom FROM CG_PTCP_C6_AREE_NATURALI" DATA "E:\Dati cartografici Comuni\Parma PTCP\ptcp gauss\C6\aree_naturali.shp" METADATA "wms_title" "Aree naturali" "gml_include_items" "all" END DUMP TRUE OPACITY 50 CLASS STYLE COLOR 0 0 255 # WIDTH 8 END LABEL TYPE truetype FONT "PerspectiveBlack" SIZE 11 END END If I remark the row DATA "E:\ \aree_naturali.shp" and I remove the # in the previous lines to enable the Sql Server 2008 call, executing the WMS call from browser I obtain a blank image. I can't understand the different beaviour, because the geometry in Sql Server is the same, and the connection is accepted correctly. Any ideas? Thanks a lot, Kiks -- View this message in context: http://n2.nabble.com/msplugin-mssql2008-dll-plugin-seems-to-work-but-I-obtain-a-blank-image-tp4627179p4627179.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] Re: Reg:About Native Microsoft SQL Server 2008 Driver for MapServer
A read-only, native MapServer driver that connects to Microsoft SQL Server 2008's spatial capabilities is available in MS4W as of version 2.3.0. Steps to Enable SQL Server 2008 Support in MS4W's MapServer The plugin exists in /ms4w/Apache/specialplugins/msplugin_mssql2008.dll Modify your SQL Server 2008 layer in your mapfile to use the CONNECTIONTYPE PLUGIN parameter and point to the appropriate plugin using the PLUGIN parameter. Use the CONNECTION parameter to specify the required connection parameters to access SQL Server, and use the DATA parameter to specify the table that holds the spatial information: LAYER ... CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" CONNECTION "server=mysqlserver2008.com;uid=dbusername; pwd=dbpassword;database=Roads Database; Integrated Security=false" DATA "the_geom from roads" TYPE LINE STATUS ON CLASS ... END END Test your layer, possibly by using the shp2img commandline utility with the '-all_debug 5' switch The associated RFC document with the original notes on this support is RFC 38 -- View this message in context: http://n2.nabble.com/Reg-About-Native-Microsoft-SQL-Server-2008-Driver-for-MapServer-tp1971580p4626221.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@lists.osgeo.org
I resolved the problem. I was using FWtools2.4.6 (MapServer 5.6.0 Beta4), that hadn't enabled the AGG Rendering driver. I tried to switch to MS4W 5.2.1, and change the OUTPUTFORMAT in mapfile to this: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END Now it works fine. Kiks -- View this message in context: http://n2.nabble.com/Blank-image-result-after-the-call-http-localhost-mapserver-mapserv-exe-map-ecw-map-mode-map-tp4596732p4598561.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@lists.osgeo.org
Adjusting the MIME types I find the problem and I managed to make a WMS call to my raster maps, and I make an shp index for my tiles, too! Thanks a lot. I still have one other little problem that I can't solve... In the WMS call, if I put height and width approssimativly major than 550 pixel, the jpeg file seems to be corrupted. The MAXSIZE = 2048 has not resolved the problem. Any Ideas? Kiks This is my new filemap: MAP NAME Ortofoto # CONFIG "MS_ERRORFILE" "stdout" # DEBUG 3 CONFIG "ON_MISSING_DATA" "IGNORE" MAXSIZE 2048 UNITS METERS EXTENT 1533000 4450600 2668880 4961480 OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END CONFIG "PROJ_LIB" "C:\Programmi\FWTools2.4.6\proj_lib" PROJECTION "init=epsg:4326" END LAYER NAME "orto" TYPE RASTER STATUS DEFAULT # TRANSFORM FALSE # DATA "c:\tematismi\ortofoto\197120.ecw" TILEINDEX "Ortofoto.shp" TILEITEM "Location" END # Layer END # Map File -- View this message in context: http://n2.nabble.com/Blank-image-result-after-the-call-http-localhost-mapserver-mapserv-exe-map-ecw-map-mode-map-tp4596732p4598441.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@lists.osgeo.org
Hi folks, thanks for the quick replies you have posted! I tried to change the STATUS to DEFAULT and I removed the projection information. Now I can see the image created with the shp2img utility, and also with the ALL_DEBUG option it seems to be all right! But I still can't get an image in the browser with these calls: http://localhost/mapserver/mapserv.exe?map=ecw.map&mode=map&layers=all http://localhost/mapserver/mapserv.exe?map=ecw.map&mode=map And when I call this: http://localhost/mapserver/mapserv.exe?map=ecw.map&SERVICE=WMS&REQUEST=GetCapabilities the reply is like before: WMS Ortofoto 2048 2048 text/xml image/jpeg image/gif image/png image/png; mode=24bit image/vnd.wap.wbmp image/tiff image/svg+xml text/plain application/vnd.ogc.gml text/xml image/jpeg image/gif image/png image/png; mode=24bit image/vnd.wap.wbmp text/xml XML INIMAGE BLANK Ortofoto Ortofoto Ortofoto 1.54612e+006 1.55288e+006 4.94363e+006 4.95025e+006 ecw ecw 1.54612e+006 1.55288e+006 4.94408e+006 4.9498e+006 and if I add &VERSION=1.1.1, or if I try the GetMap with all the parameters needed (BBOX, etc.) the browser (IE 8 and Chrome) ask me to download the mapserv.exe ! Any other suggestion to debug the WMS service? Thanks a lot, Kiks -- View this message in context: http://n2.nabble.com/Blank-image-result-after-the-call-http-localhost-mapserver-mapserv-exe-map-ecw-map-mode-map-tp4596732p4597157.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@lists.osgeo.org
Hi, I'm new to Mapserver, and I'm next to view my first raster image in the browser, but I still have some problems: My MapServer runs under IIS: I've installed the tool version (FWTools2.4.6) and it seems to be ok. >From the browser I try this, but the response is a blank page. http://localhost/mapserver/mapserv.exe?map=ecw.map&mode=map This is the content of my mapfile (ecw.map): MAP NAME Ortofoto STATUS ON SIZE 602 589 EXTENT 1546119.5 4943633.5 1552879.5 4950247.5 UNITS METERS OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END CONFIG "PROJ_LIB" "C:\Programmi\FWTools2.4.6\proj_lib" PROJECTION "init=epsg:3003" END LAYER NAME "ecw" TYPE RASTER STATUS ON TRANSFORM FALSE DATA "c:\tematismi\197120.ecw" EXTENT 1546119.5 4943633.5 1552879.5 4950247.5 PROJECTION "init=epsg:3003" END END # Layer END # Map File if I ask for capabilities http://localhost/mapserver/mapserv.exe?map=ecw.map&SERVICE=WMS&REQUEST=GetCapabilities the response is this: WMS Ortofoto 2048 2048 text/xml image/jpeg image/gif image/png image/png; mode=24bit image/vnd.wap.wbmp image/tiff image/svg+xml text/plain application/vnd.ogc.gml text/xml image/jpeg image/gif image/png image/png; mode=24bit image/vnd.wap.wbmp text/xml XML INIMAGE BLANK Ortofoto Ortofoto Ortofoto EPSG:3003 9.58154 9.66746 44.6433 44.7033 ecw ecw EPSG:3003 9.58154 9.66746 44.6433 44.7033 The problem is that I don't know how to debug and understand where I'm wrong. The extents of the ecw file is correct, I don't know about the projection, but I think there is non reason to make conversion of any type. Thanks to everyone that has any suggestion. Kiks -- View this message in context: http://n2.nabble.com/Blank-image-result-after-the-call-http-localhost-mapserver-mapserv-exe-map-ecw-map-mode-map-tp4596732p4596732.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