Re: [mapserver-users] How to use the new templating mechanism (via WMS)?
Hello Steve, done http://trac.osgeo.org/mapserver/ticket/3024 It would be great to have it in 5.4.1 Thanks Nicol Am Donnerstag, den 21.05.2009, 15:39 -0500 schrieb Steve Lime: I think the problem you're running into is that templated formats are not properly being made available via WMS. That's a different problem and most likely a bug as I bet that code knows nothing about the template driver. Can you create a ticket and we can try to address in 5.4.1? Steve On 5/21/2009 at 10:55 AM, in message 1242921314.4679.3.ca...@localhost, Nicol Hermann mapser...@geoworld.de wrote: Dear list, can someone please share some code snippets how to use the new templating mechanism? (http://mapserver.org/development/rfc/ms-rfc-36.html) My goal is to create a JOSN string from a getFeatureInfo Request (mapserver version 5.2). I understand that i have to create an outputformat which refers e.g. to a JavaScript file. What i do not understand is, how i approach this outputformat? I followed the instructions in this posting http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008168.html and I tried to specify INFO_FORMAT=application/json in the GetFeatureInfo-Request but this leads to an exception. Any hints? Thanks a lot Nicol ___ 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] Oracle Spatial and styleitem auto
Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Silverlight Interface for Mapserver
Hi Anil, I am not sure what you are after here. If you want to see examples on how to use silverlight (either using c# or vb) a good place to start is: http://silverlight.net/GetStarted/ Hope this helps? Regards, Pano From: adhiman (via Nabble) [mailto:ml-user+226069-1989752...@n2.nabble.com] Sent: 21 May 2009 15:44 To: Pano Voudouris Subject: Re: [mapserver-users] Silverlight Interface for Mapserver Hi, I have seen your application. It sounds great. I need a bit of clarity on this piece of application. How can we use mapscript C# with silverlight. Please let me know: Regards, Anil Dhiman *** Pano Voudouris wrote: Hi all, This is just for info in case anyone is interested and working with these technologies. We have created a silverlight front-end to Mapserver using mapscript c#. The map serving logic is based on the excellent MapFlash Viewer Framework demo done by Paolo Corti http://www.paolocorti.net/2006/10/26/mapflashviewer-framework and extended to include more functionality. On the other hand in our case it now focuses squarely on mapserver. The app was developed to be run either as a standalone, low-cost webGIS or as embedded 'map in app' in other web pages. (And yes - pages will need to be of the .NET flavour...) You can have a play at the demo at: http://193.92.131.105/slmapview Note though that the actual data is in greek!However assuming you do not have your browser set to Greek you should be able to see the rest of the app in English. Pano _ This email is a reply to your post @ http://n2.nabble.com/Silverlight-Interface-for-Mapserver-tp2791496p2951737.h tml You can reply by email or by visting the link above. -- View this message in context: http://n2.nabble.com/Silverlight-Interface-for-Mapserver-tp2791496p2957356.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: [mapserver-users] Oracle Spatial and styleitem auto
You could use separate classes to do that? - Original Message From: Jelmer Baas b...@speerit.nl To: mapserver-users@lists.osgeo.org Sent: Friday, May 22, 2009 6:38:34 AM Subject: [mapserver-users] Oracle Spatial and styleitem auto Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ 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] display map on aspx page
meenu wrote: hi friend check this link...may helpful for u.. http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-td2516841.html#a2567804 Thanks for your reply. I am trying to display a map using paolo corti's tutorial for the last 2 days but haven't succeeded so far yet. The latest error I am getting is that - msLoadMap(): Unable to access file IT is unable to access the map file. But If I put the map file URL directly in the browser the map is being displayed. It means that Apache is properly configured and running.The direct url which displays the map is http://localhost:8085/cgi-bin/mapserv.exe?mode=mapmap=C:\ms4w\Apache\cgi-bin\INDIA\india.map What should be done so that the application finds the file and displays the map? If this happens it will be thru' server side code. I want to load map and do operations on it using client side javascript. I don't know how to access the mapserver DLL's through javascript. Pls help in this regard. -- View this message in context: http://n2.nabble.com/display-map-on-aspx-page-tp2950436p2957638.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: [mapserver-users] display map on aspx page
Hello there, Iam new to mapserver. I have installed mapserver plus the demo applications - chameleon, p_mapper etc and they are all working fine. The problem is I just cant load my own data. I've tried the mapserver generator in mapwindow, the qgis web plugin plus Amien in Arcmap but still no success. I am currently following Web Mapping Illustrated By Tyler Mitchell, working on his very first example of global.map, global.html. When I click start map server, I get a page with a blank portion, instead of the map itself. The gif however is created in the ms_tmp folder. How do I get to display the map in the browser? Can also anyone perhaps show me how I can import my own data into the already made applications like Pmapper or fusion? Thanks in advance _ 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] Using Spot DIMAP Format in Mapserver
Hello, I'm trying to use Dimap format from Spot Image( metadata.dim) in my mapfile but my raster is always bad located. METADATA.DIM opens directly in Qgis is well placed and well oriented. The correspondant IMAGERY.TIF is well placed but not well oriented. I'm not able to create the worldfile (pb to catch orientation info) for my tif file so I want to use directly dimap format but I don't understand why metadata.dim is not well interpreted by Mapserver. My Mapfile contains: TYPE RASTER DATA country/METADATA.DIM PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END Gdalinfo on IMAGERY.TIF: Driver: GTiff/GeoTIFF Files: IMAGERY.TIF Size is 3000, 3000 Coordinate System is: GEOGCS[WGS 84, DATUM[WGS_1984, SPHEROID[WGS 84,6378137,298.2572235630016, AUTHORITY[EPSG,7030]], AUTHORITY[EPSG,6326]], PRIMEM[Greenwich,0], UNIT[degree,0.0174532925199433], AUTHORITY[EPSG,4326]] Origin = (11.795597991857200,-4.699265933053320) Pixel Size = (0.7078200,-0.7078200) Metadata: AREA_OR_POINT=Point TIFFTAG_IMAGEDESCRIPTION=B3 B2 B1 B4 TIFFTAG_DATETIME=20090428 15:04:18 Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 11.7955980, -4.6992659) Lower Left ( 11.7955980, -4.9116119) Upper Right ( 12.0079440, -4.6992659) Lower Right ( 12.0079440, -4.9116119) Center ( 11.9017710, -4.8054389) Band 1 Block=3000x500 Type=Byte, ColorInterp=Red Band 2 Block=3000x500 Type=Byte, ColorInterp=Green Band 3 Block=3000x500 Type=Byte, ColorInterp=Blue Band 4 Block=3000x500 Type=Byte, ColorInterp=Undefined Gdalinfo on the METADATA.DIM of IMAGERY.TIF Driver: DIMAP/SPOT DIMAP Files: METADATA.DIM Size is 3000, 3000 Coordinate System is `' GCP Projection = GEOGCS[WGS 84,DATUM[WGS_1984,SPHEROID[WGS 84,6378137,298. 257223563,AUTHORITY[EPSG,7030]],AUTHORITY[EPSG,6326]],PRIMEM[Greenw ich ,0,AUTHORITY[EPSG,8901]],UNIT[degree,0.01745329251994328,AUTHORITY[EP SG, 9122]],AUTHORITY[EPSG,4326]] GCP[ 0]: Id=1, Info= (0.5,0.5) - (11.795633,-4.699301,0) GCP[ 1]: Id=2, Info= (2999.5,0.5) - (12.010877,-4.734618,0) GCP[ 2]: Id=3, Info= (0.5,2999.5) - (11.745949,-4.913964,0) GCP[ 3]: Id=4, Info= (2999.5,2999.5) - (11.961267,-4.949299,0) Metadata: JOB_ID=R2_CAT_090428123250353_1 PRODUCT_INFO=FORMOSAT-2 SCENE level 1A PRODUCT_TYPE=FORMOSAT-2 SCENE DATASET_PRODUCER_NAME=NSPO / Spot Image DATASET_PRODUCTION_DATE=2009-04-28 15:04:20.00 GRID_REFERENCE=0067-0481 SHIFT_VALUE=0 IMAGING_DATE=2006-02-28 IMAGING_TIME=08:57:15.197455 MISSION=FORMOSAT MISSION_INDEX=2 INSTRUMENT=RSI INSTRUMENT_INDEX=1 IMAGING_MODE=MS SCENE_PROCESSING_LEVEL=0 VIEWING_ANGLE_ALONG_TRACK=0.273794 VIEWING_ANGLE_ACROSS_TRACK=-3.151896 SATELLITE_INCIDENCE_ANGLE=3.611694 SATELLITE_AZIMUTH_ANGLE=98.138828 SUN_AZIMUTH=98.126829 SUN_ELEVATION=52.988591 REVOLUTION_NUMBER=09085 PROCESSING_LEVEL=1A GEOMETRIC_PROCESSING=SYSTEM RADIOMETRIC_PROCESSING=SYSTEM Corner Coordinates: Upper Left (0.0,0.0) Lower Left (0.0, 3000.0) Upper Right ( 3000.0,0.0) Lower Right ( 3000.0, 3000.0) Center ( 1500.0, 1500.0) Band 1 Block=3000x500 Type=Byte, ColorInterp=Red Band 2 Block=3000x500 Type=Byte, ColorInterp=Green Band 3 Block=3000x500 Type=Byte, ColorInterp=Blue Band 4 Block=3000x500 Type=Byte, ColorInterp=Undefined Thanks for all ERIC ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] display map on aspx page
Luke Kateregga wrote: Hello there, Iam new to mapserver. I have installed mapserver plus the demo applications - chameleon, p_mapper etc and they are all working fine. The problem is I just cant load my own data. I've tried the mapserver generator in mapwindow, the qgis web plugin plus Amien in Arcmap but still no success. I am currently following Web Mapping Illustrated By Tyler Mitchell, working on his very first example of global.map, global.html. When I click start map server, I get a page with a blank portion, instead of the map itself. The gif however is created in the ms_tmp folder. How do I get to display the map in the browser? Can also anyone perhaps show me how I can import my own data into the already made applications like Pmapper or fusion? Thanks in advance Hello Luke, Welcome to the world of MapServer, I think you're going to love it. I think you should focus on your .map file first, and then worry about the applications later. To start with, you could go through the MapServer workshop[1] that is given every year at the FOSS4G conference - in that you will have access to data and working mapfiles. Also, test your mapfile using the shp2img commandline utility[2]. I would start with a small mapfile with only one layer, test it with shp2img, and once that single layer is showing in the resulting map image from that command, continue adding layers. That should get you going. If you ever get totally frustrated, there are providers out here to help, like myself, offering direct support services, so keep that in mind. Anyway good luck and have fun. -jeff [1] http://www.gatewaygeomatics.com/dl/mapserver-workshop/ms101_ms4w_package.zip [2] http://www.mapserver.org/utilities/shp2img.html -- 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] Help with symbol layer
Hello all. I have a question that may or may not have been answered before, but I can't seem to find anything on it. Is it possible with mapserver to make a symbol fill the entire area of a polygon feature? In other words, can I provide an image as the symbol, and have that symbol completely fill the polygon, regardless of the width and height dimensions of the image? Thank you, -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Help with symbol layer
Yes, see here. . . http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ( http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ) Adam Eskreis aeskr...@gmail.com wrote: Hello all. I have a question that may or may not have been answered before, but I can't seem to find anything on it. Is it possible with mapserver to make a symbol fill the entire area of a polygon feature? In other words, can I provide an image as the symbol, and have that symbol completely fill the polygon, regardless of the width and height dimensions of the image? Thank you, -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Help with symbol layer
Oh, well, that's slight different, you want to scale an image/symbol, to fit (once) in a closed polygon, right? That's harder to do (if at all), are all the polygons the same size, or variable in size. Are they the same aspect as th, height to width as the symbol? You may be able to scale on a attribute value if you have the size (width or height) as a attribute for example. SIZE [attributeValueFromDataSource] ## This uses the value in the attributes from the data source to size the symbol. Clipping the symbol to fit an irregular polygon will be another complication, unless you allow for repeating symbols (which is what I thought you were looking for originally. bobb Adam Eskreis aeskr...@gmail.com wrote: Ok, I read through this, and it was helpful, but i can't figure how to do exactly what I need. What I essentialy want to do is make the symbol act as though it were the background image of the polygon. No repeating, and stretched or compressed to fit, so that the entire image is viewable. Is somethign like this possible? -Adam On Fri, May 22, 2009 at 3:46 PM, Bob Basques bob.basq...@ci.stpaul.mn.us wrote: Yes, see here. . . http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ( http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ) Adam Eskreis aeskr...@gmail.com wrote: Hello all. I have a question that may or may not have been answered before, but I can't seem to find anything on it. Is it possible with mapserver to make a symbol fill the entire area of a polygon feature? In other words, can I provide an image as the symbol, and have that symbol completely fill the polygon, regardless of the width and height dimensions of the image? Thank you, -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial and styleitem auto
Hi, If you are using OGR to access the Oracle Spatial data source, you could specify a valid OGR style string in the table by adding field with name: 'OGR_STYLE'. In this case OGR will extract the feature style automatically when using the STYLEITEM AUTO option with this OGR layer. For more information about the OGR feature style strings see: http://www.gdal.org/ogr/ogr_feature_style.html You could use ogr2ogr to transfer the feature styles between various data sources, see the document above. Best regards, Tamas 2009/5/22 Jelmer Baas b...@speerit.nl Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ 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] Help with symbol layer
Thank you for your help so far Bob. Your suggestion gave me an idea. What I am doing now, I calculated the center point for each polygon, and inserted that geometry into the database table. I am now displaying the symbol centered on the polygon, however there is still the issue of sizing it properly. My idea is to write a stand alone program that will size the images properly depending on the polygon size. The problem of having a different image for every polygon is another story in itself, but I want to focus on getting just a few images in there first. Is it crazy to try to calculate what the screen pixel size of the bounding box surrounding the polygon, depending on scale, in order to resize the image to a size that will fit just right into the polygon? -Adam On Fri, May 22, 2009 at 5:27 PM, Bob Basques bob.basq...@ci.stpaul.mn.uswrote: Oh, well, that's slight different, you want to scale an image/symbol, to fit (once) in a closed polygon, right? That's harder to do (if at all), are all the polygons the same size, or variable in size. Are they the same aspect as th, height to width as the symbol? You may be able to scale on a attribute value if you have the size (width or height) as a attribute for example. SIZE [attributeValueFromDataSource] ## This uses the value in the attributes from the data source to size the symbol. Clipping the symbol to fit an irregular polygon will be another complication, unless you allow for repeating symbols (which is what I thought you were looking for originally. bobb Adam Eskreis aeskr...@gmail.com wrote: Ok, I read through this, and it was helpful, but i can't figure how to do exactly what I need. What I essentialy want to do is make the symbol act as though it were the background image of the polygon. No repeating, and stretched or compressed to fit, so that the entire image is viewable. Is somethign like this possible? -Adam On Fri, May 22, 2009 at 3:46 PM, Bob Basques bob.basq...@ci.stpaul.mn.us wrote: Yes, see here. . . * http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill * Adam Eskreis aeskr...@gmail.com wrote: Hello all. I have a question that may or may not have been answered before, but I can't seem to find anything on it. Is it possible with mapserver to make a symbol fill the entire area of a polygon feature? In other words, can I provide an image as the symbol, and have that symbol completely fill the polygon, regardless of the width and height dimensions of the image? Thank you, -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users