[mapserver-users] How to browse WMS-C layers
Dear all, Does anyone tell me how to browse or handle WMS-C (web map service tiling cache) layers? Can the combination with MapServer and OpenLayers handle WMS-C layer's data? I cannot find any information inside the MapServer-users mailing list archive. -- --- Yasuharu Yamada ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [mapserver-users] MapServer Docs in Android Market
Hi Steve, her is the eclipse project for compiling the app: http://www.netgis.de/download/MapServerDoc.zip In the folder \assets\www is the webapp. You can use it for integrate it into the main page (maybe with a link to the app in the market) Greetings Sven Von: Steve Lime [mailto:sdl...@gmail.com] Gesendet: Mittwoch, 20. Juli 2011 17:57 An: schroe...@netgis.de Cc: mapserver-users@lists.osgeo.org Betreff: Re: [mapserver-users] MapServer Docs in Android Market Looks great! How should we integrate into the main website? Steve On Sat, Jul 9, 2011 at 7:11 AM, schroe...@netgis.de wrote: Hi all, here's my MapServer docs App for android in the market: https://market.android.com/details?id=com.netgis.mapserver_dochl=en Or search on your phone in the market for mapserver. Greetings Sven ___ 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] ArcSDE, Win32 and truncated GetCapabilities
Dear list, I have an ArcSDE-Layer-based mapfile. When requesting a GetCapabilities-doc in Version 1.1.1 and 1.3.0, the output gets truncated. In 1.0.0 the GetCapabilities-Document is finished though, strange. I am running MapServer 6.1-dev (r11785) on Windows 7 with Apache 2.2.19 against ArcSDE 9.3.1. I found some quite old issues[1],[2] which seem to have the same problem, but apparently they are fixed. Are there any known issues? TIA Best regards Stephan [1] http://trac.osgeo.org/mapserver/ticket/767 [2] http://trac.osgeo.org/mapserver/ticket/779 -- Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Multiple styles in STYLEITEM
Hi, everyone! I try to use variable styles for objects in Oracle DB. To show railroads I have to use styles like that: STYLE COLOR 102 102 102 WIDTH 4.0 END STYLE COLOR 255 255 255 WIDTH 2.0 LINECAP BUTT PATTERN 8 12 END END If I store it in table field MS_STYLE I must define this layer: LAYER NAME 'railroad' STATUS ON TYPE LINE PROJECTION init=epsg:4326 END CONNECTIONTYPE oraclespatial CONNECTION ***/***@ DATA SHAPE FROM FGIS_DATA USING SRID 8307 FILTER (CATEGORYID = 41 and GTYPE in (2,6)) STYLEITEM MS_STYLE CLASS NAME 'railroad' END PROCESSING CLOSE_CONNECTION=DEFER END But MapServer reads only the first definition of STYLE (without pattern). Is there another way to make it work? Regards, Gleb ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Multiple styles in STYLEITEM
Hi Gleb, You may probably encapsulate multiple styles in a CLASS definition. Best regards, Tamas 2011/7/28 Gleb Kosolapov thunderl...@yandex.ru Hi, everyone! I try to use variable styles for objects in Oracle DB. To show railroads I have to use styles like that: STYLE COLOR 102 102 102 WIDTH 4.0 END STYLE COLOR 255 255 255 WIDTH 2.0 LINECAP BUTT PATTERN 8 12 END END If I store it in table field MS_STYLE I must define this layer: LAYER NAME 'railroad' STATUS ON TYPE LINE PROJECTION init=epsg:4326 END CONNECTIONTYPE oraclespatial CONNECTION ***/***@ DATA SHAPE FROM FGIS_DATA USING SRID 8307 FILTER (CATEGORYID = 41 and GTYPE in (2,6)) STYLEITEM MS_STYLE CLASS NAME 'railroad' END PROCESSING CLOSE_CONNECTION=DEFER END But MapServer reads only the first definition of STYLE (without pattern). Is there another way to make it work? Regards, Gleb ___ 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] Multiple styles in STYLEITEM
Yes, I can encapsulate multiple styles in a CLASS definition, but I need to take it from database. 28.07.2011, 16:07, "Tamas Szekeres" szeker...@gmail.com:Hi Gleb,You may probably encapsulate multiple styles in a CLASS definition.Best regards,Tamas2011/7/28 Gleb Kosolapov thunderl...@yandex.ruHi, everyone! I try to use variable styles for objects in Oracle DB. To show railroads I have to use styles like that: STYLE COLOR 102 102 102 WIDTH 4.0 END STYLE COLOR 255 255 255 WIDTH 2.0 LINECAP BUTT PATTERN 8 12 END END If I store it in table field MS_STYLE I must define this layer: LAYER NAME 'railroad' STATUS ON TYPE LINE PROJECTION "init=epsg:4326" END CONNECTIONTYPE oraclespatial CONNECTION "***/***@" DATA "SHAPE FROM FGIS_DATA USING SRID 8307" FILTER "(CATEGORYID = 41 and GTYPE in (2,6))" STYLEITEM "MS_STYLE" CLASS NAME 'railroad' END PROCESSING "CLOSE_CONNECTION=DEFER" END But MapServer reads only the first definition of STYLE (without pattern). Is there another way to make it work? Regards, Gleb ___ 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] Get Map Request with SLD Parameter and local SLD file not via http
Hi List, I tried to make a getMap request and send mapserver (6.0.1) a url (http) to the SLD. This works as expected mapserver fetches the SLD and print the map as defined in the SLD. The SLD is fetched from an application running in tomcat 6.x. The Problem is that every getMap request creates a new session and so I have a huge number of sessions just from every mapserver request. So I tried to make send the SLD as a path to a local file mapserver can reach, just like the mapfile itself. So the SLD parameter looks like this SLD=file:///home/user/tomcat6/temp/sld_4997.xml the hole request: http://localhost/cgi-bin/mapserv?map=/home/user/tomcat6/temp/web.mapLAYERS=flkFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSLD=file:///home/user/tomcat6/temp/sld_4997.xmlSRS=EPSG%3A25832BBOX=572178.49459,5700398.1267994,577747.883339,5704136.2447176WIDTH=958HEIGHT=643 With this mapserver is not returning any map image but an error. In the log file it says: [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] CGI Request 1 on process 8224 [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 0 () for file:///home/user/tomcat6/temp/sld_4997.xml [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] msSLDApplySLDURL: WMS server error. Could not open SLD file:///home/user/tomcat6/temp/sld_4997.xml and save it in temporary file /home/user/tomcat6/temp/4e31521f_2020_0.sld.xml. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings. [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] msFreeMap(): freeing map at 0x8262178. curl error code 0 means as far as I know everything is OK. Also the file mapserver is complaining about that it can not be written (home/user/tomcat6/temp/4e31521f_2020_0.sld.xml) is created and has the same content as the original SLD file. So mapserver can read the SLD and write its temp one. But somewhere it stops with creating the map image. I hope someone can understand my problem and maybe give me some hint. Thanks in advance. Greetings, Fabian PS: The error says one has to take care of setting TMPPATH but this must be TEMPPATH, mustn't it? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-Map-Request-with-SLD-Parameter-and-local-SLD-file-not-via-http-tp6629653p6629653.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] Multiple styles in STYLEITEM
I mean you can place class definitions to the database as style strings according to: http://mapserver.org/development/rfc/ms-rfc-61.html#supported-style-representations Best regards, Tamas 2011/7/28 Gleb Kosolapov thunderl...@yandex.ru Yes, I can encapsulate multiple styles in a CLASS definition, but I need to take it from database. 28.07.2011, 16:07, Tamas Szekeres szeker...@gmail.com: Hi Gleb, You may probably encapsulate multiple styles in a CLASS definition. Best regards, Tamas 2011/7/28 Gleb Kosolapov thunderl...@yandex.ru Hi, everyone! I try to use variable styles for objects in Oracle DB. To show railroads I have to use styles like that: STYLE COLOR 102 102 102 WIDTH 4.0 END STYLE COLOR 255 255 255 WIDTH 2.0 LINECAP BUTT PATTERN 8 12 END END If I store it in table field MS_STYLE I must define this layer: LAYER NAME 'railroad' STATUS ON TYPE LINE PROJECTION init=epsg:4326 END CONNECTIONTYPE oraclespatial CONNECTION ***/***@ DATA SHAPE FROM FGIS_DATA USING SRID 8307 FILTER (CATEGORYID = 41 and GTYPE in (2,6)) STYLEITEM MS_STYLE CLASS NAME 'railroad' END PROCESSING CLOSE_CONNECTION=DEFER END But MapServer reads only the first definition of STYLE (without pattern). Is there another way to make it work? Regards, Gleb ___ 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] Multiple styles in STYLEITEM
Oh, thank you, Tamas.28.07.2011, 17:11, "Tamas Szekeres" szeker...@gmail.com:I mean you can place class definitions to the database as style strings according to:http://mapserver.org/development/rfc/ms-rfc-61.html#supported-style-representations Best regards,Tamas2011/7/28 Gleb Kosolapov thunderl...@yandex.ruYes, I can encapsulate multiple styles in a CLASS definition, but I need to take it from database. 28.07.2011, 16:07, "Tamas Szekeres" szeker...@gmail.com: Hi Gleb,You may probably encapsulate multiple styles in a CLASS definition.Best regards,Tamas2011/7/28 Gleb Kosolapov thunderl...@yandex.ruHi, everyone! I try to use variable styles for objects in Oracle DB. To show railroads I have to use styles like that: STYLE COLOR 102 102 102 WIDTH 4.0 END STYLE COLOR 255 255 255 WIDTH 2.0 LINECAP BUTT PATTERN 8 12 END END If I store it in table field MS_STYLE I must define this layer: LAYER NAME 'railroad' STATUS ON TYPE LINE PROJECTION "init=epsg:4326" END CONNECTIONTYPE oraclespatial CONNECTION "***/***@" DATA "SHAPE FROM FGIS_DATA USING SRID 8307" FILTER "(CATEGORYID = 41 and GTYPE in (2,6))" STYLEITEM "MS_STYLE" CLASS NAME 'railroad' END PROCESSING "CLOSE_CONNECTION=DEFER" END But MapServer reads only the first definition of STYLE (without pattern). Is there another way to make it work? Regards, Gleb ___ 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] Problem GetFeature with geom filter on WFS
Hello, I log the sql request on spatial filter and I have this: select oid,nummer,gemeinde,gueltigkeit,flgrundb,quote,eigentuemer,adresse_lang,encode(ST_AsBinary(ST_Force_2D(geom),'NDR'),'hex') as geom,oid from (SELECT oid, t1.geom, t1.nummer, t2.gemeinde, t1.gueltigkeit1_txt as gueltigkeit, t2.flgrundb, ((t2.zaehler::text || '/'::text) || t2.nenner::text) AS quote, t2.eigentuemer, (((t2.adresse::text || ', '::text) || t2.plz::text) || ' '::text) || t2.ort::text AS adresse_lang FROM av.liegenschaften_liegenschaft_area as t1, av.view_gemlis_geomaste_parzelle as t2 WHERE t1.gdid = t2.gdeid and t1.nummer = t2.parznr::text) AS foo where geom GeomFromText('POLYGON((62 218000,62 278000,69 278000,69 218000,62 218000))',-1) limit 100 I didn't see any postggis filter than I try to do a spatial filter on one of the 100 first results Than I have a correct result ... Than why mapserver doesn't use postgis spatial filter ? Does I miss something ? Thank-you in advance Stéphane Brunner 2011/7/26 Stéphane Brunner stephane.brun...@camptocamp.com: Hello, I just test it with a shape file, and it's working... I will investigate a little bit more to know why it's not working with postgres. Sincerely Stéphane Brunner 2011/7/25 Steve Lime sdl...@gmail.com: Never mind on version, I saw 6.0.0 in the response... ;-) Steve On Mon, Jul 25, 2011 at 6:19 AM, Stéphane Brunner stephane.brun...@camptocamp.com wrote: Hello, I have the mapfile [0]. when I done a GetFeature on the nummer [1] I have 4 results [2] (with duplicate but it's an other issue). When I done a spatial filter [3] I have no results [4] but I should have at least one result ... Thanks in advance for having a look on this issue. Sincerely yours Stéphane Brunner Following: specified, GetCapabilities [5], describefeaturetype [6]. mapfile [0]: MAP NAME map EXTENT 62 218000 69 278000 UNITS METERS IMAGETYPE jpeg RESOLUTION 72 DEFRESOLUTION 72 IMAGECOLOR 255 255 255 STATUS ON FONTSET fonts.conf SYMBOLSET symbole.sym MAXSIZE 5000 PROJECTION init=epsg:21781 END # Used by overlays OUTPUTFORMAT NAME png256 DRIVER AGG/PNG MIMETYPE image/png256 IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=256 END OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE image/png IMAGEMODE RGBA EXTENSION png FORMATOPTION INTERLACE=OFF FORMATOPTION QUANTIZE_DITHER=OFF END WEB METADATA ows_title map ows_srs epsg:21781 ows_encoding UTF-8 wms_feature_info_mime_type application/vnd.ogc.gml wms_enable_request * ows_enable_request * gml_include_items all gml_featureid id wfs_title map wfs_srs epsg:21781 END IMAGEPATH '/var/tmp/' END LEGEND IMAGECOLOR 240 240 240 LABEL FONT arial ANTIALIAS true TYPE truetype SIZE 9 COLOR 0 0 0 END END LAYER NAME Liegenschaft_Query TYPE POLYGON STATUS ON TEMPLATE fooOnlyForWMSGetFeatureInfo CONNECTIONTYPE postgis PROCESSING CLOSE_CONNECTION=DEFER CONNECTION user=www-data password=www-data dbname=dev host=localhost DATA geom from (SELECT oid, t1.geom, t1.nummer FROM av.view_i_liegenschaft_all AS t1) AS foo using unique oid using SRID=-1 # GROUP TOPIC_Liegenschaften_LN EXTENT 62 218000 69 278000 METADATA ows_title Liegenschaft_Query ows_srs epsg:21781 id_attribute_string oid ows_featureid oid ows_geometries geom ows_geom_type polygon query_returned_attributes nummer gml_include_items oid,nummer,geom gml_geometries geom gml_geom_type polygon gml_nummer_type Character #gml_groups TOPIC_Liegenschaften_LN gml_featureid oid wfs_title Liegenschaft_Query wfs_srs epsg:21781 END DUMP TRUE PROJECTION init=epsg:21781 END CLASS NAME Liegenschaft STYLE SYMBOL circle SIZE 3 OUTLINECOLOR 0 0 0 END END END END query on the nummer [1]: wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS version=1.0.0 maxFeatures=100 xsi:schemaLocation=http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; wfs:Query typeName=feature:Liegenschaft_Query xmlns:feature=http://mapserver.gis.umn.edu/mapserver; ogc:Filter xmlns:ogc=http://www.opengis.net/ogc; ogc:PropertyIsEqualTo ogc:PropertyNamenummer/ogc:PropertyName ogc:Literal3634/ogc:Literal /ogc:PropertyIsEqualTo /ogc:Filter /wfs:Query /wfs:GetFeature response on the nummer [2]:
Re: [mapserver-users] Possible tile_map_edge_buffer issue
I was just about to post this EXACT same issue. I have discovered something else though. I can force a feature and git to show up where the other missing data is. It shows up on tile=0+1+2 Also If I view the map as mode=map, it works fine, I see my YellowDot and my actual data from my data source. LAYER NAME YellowDot STATUS DEFAULT TYPE POINT FEATURE POINTS -100 20 END END CLASS STYLE SYMBOL circle SIZE 30 COLOR 255 255 0 OUTLINECOLOR 255 0 0 END END END On Thu, Jul 28, 2011 at 9:18 AM, Charlie Allgrove charlie.allgr...@connectionservices.com wrote: Hi I have an issue when using tile_map_edge_buffer functionality with mode=tile on a Google map view which displays the whole world at zoom 0,1 or 2. It probably manifests itself at higher zoom levels, but will be less obvious (if at all) since I'm only rendering data over land. In my map file I have (amongst others) WEB METADATA tile_map_edge_buffer 32 # 32 pixel rendering buffer http_max_age 86400 END END My development code is not on a publicly available server at the moment, so I can't post a link but when I am looking at a Google map at zoom levels 0,1 or 2, the tiles consistently cut off approx half-way across the USA (see attached screenshot). It seems that {tile=0 1 2} does not render with the buffering enabled, since the buffered area extends effectively to a negative tile reference {-1 1 2} which is illegal. Is there any way around this - is it possible only to enable the buffer for zooms =3? Cheers Charlie -- Charlie Allgrove Senior Developer Connection Services :: Business Mobility for a Wireless World Connection Services Ltd is a company incorporated under the laws of England and Wales with company number 6520674 whose registered office is at Griffins Court, 24-32 London Road, Newbury, Berkshire, RG14 1JX. The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. If you are not an intended recipient, please delete the message and any attachments and notify the sender of misdelivery: any use or disclosure of the contents of either is unauthorised and may be unlawful. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender. In accordance with the provisions of its Terms of Business the Company does not accept instructions or the creation of contractual obligations by unconfirmed electronic transmission. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- A computer without Windows is like chocolate cake without mustard. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map
JK (?), One question: did you use gdaltindex ? IC Carlos Ruiz From: jk jk.c...@sdl.usu.edu To: mapserver-users@lists.osgeo.org Sent: Wednesday, July 27, 2011 6:20 PM Subject: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map Hi, I have a tile system of 4659 tiles, each is a 5 meter resolution raster image a particular spot in the world (as you know it is sparse, the collection of tiles do not cover the enter world). When I asking for a map of the world (ie, high-level view, a bbox with values close to the lonlat boundary of the world), my map server consistently takes long time to finish, (close to 2.5 minutes, yeah, minutes, not seconds). This is very slow. If I submit a bbox that matches a particular tile, the map is returned instantly. How could it take so long to generate the world map? How to fix that? Anything I'm missing? Any idea? I'm not using tile cache yet. But I think 2.5 minutes for world view is way too slow. Something must be wrong. If you know of any clues, let me know. Thanks for your help. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.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
Re: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map
You probably need to run gdaladdo to add reduced resolution overviews of you images which will speed up display when you are zoomed way out. for x in *.tif ; do gdaladdo $x 2 4 8 16 32 64 128 256 done Regardless, to draw the whole world you will need to open all 4659 files and fetch something from each one. You can probably speed this up be creating a super overlay image at reduced resolution and setup you mapfile to use the super overlay when zoomed out and then change to the tiles when zoomed in. Read this might help: http://mapserver.org/optimization/raster.html Also the GDAL list will be able to help you on how to create a super overlay at reduced resolution. -Steve W On 7/28/2011 11:17 AM, Carlos Ruiz wrote: JK (?), One question: did you use gdaltindex ? IC Carlos Ruiz *From:* jk jk.c...@sdl.usu.edu *To:* mapserver-users@lists.osgeo.org *Sent:* Wednesday, July 27, 2011 6:20 PM *Subject:* [mapserver-users] It takes more than 2 minutes for my map server to generate a world map Hi, I have a tile system of 4659 tiles, each is a 5 meter resolution raster image a particular spot in the world (as you know it is sparse, the collection of tiles do not cover the enter world). When I asking for a map of the world (ie, high-level view, a bbox with values close to the lonlat boundary of the world), my map server consistently takes long time to finish, (close to 2.5 minutes, yeah, minutes, not seconds). This is very slow. If I submit a bbox that matches a particular tile, the map is returned instantly. How could it take so long to generate the world map? How to fix that? Anything I'm missing? Any idea? I'm not using tile cache yet. But I think 2.5 minutes for world view is way too slow. Something must be wrong. If you know of any clues, let me know. Thanks for your help. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto: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
Re: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map
Hi, It is really essential to avoid opening all the 4659 files. Redused resolution overview images and layer group is the way to go so that there are never more than, let's say, 20-30 images to open for one call. And gdaladdo does help further. And the third step is to have internally tiled image files. When zoomed in so that just a minory part of the image file is needed for generating the output tiling helps in getting the desired part of an image fast. Mapserver itself can be used for creating overview images, just define a geotiff outputformat (http://mapserver.org/mapfile/outputformat.html) and make some requests with well controlled BBOXes. -Jukka Rahkonen- Stephen Woodbridge wrote: You probably need to run gdaladdo to add reduced resolution overviews of you images which will speed up display when you are zoomed way out. for x in *.tif ; do gdaladdo $x 2 4 8 16 32 64 128 256 done Regardless, to draw the whole world you will need to open all 4659 files and fetch something from each one. You can probably speed this up be creating a super overlay image at reduced resolution and setup you mapfile to use the super overlay when zoomed out and then change to the tiles when zoomed in. Read this might help: http://mapserver.org/optimization/raster.html Also the GDAL list will be able to help you on how to create a super overlay at reduced resolution. -Steve W On 7/28/2011 11:17 AM, Carlos Ruiz wrote: JK (?), One question: did you use gdaltindex ? IC Carlos Ruiz *From:* jk jk.c...@sdl.usu.edu *To:* mapserver-users@lists.osgeo.org *Sent:* Wednesday, July 27, 2011 6:20 PM *Subject:* [mapserver-users] It takes more than 2 minutes for my map server to generate a world map Hi, I have a tile system of 4659 tiles, each is a 5 meter resolution raster image a particular spot in the world (as you know it is sparse, the collection of tiles do not cover the enter world). When I asking for a map of the world (ie, high-level view, a bbox with values close to the lonlat boundary of the world), my map server consistently takes long time to finish, (close to 2.5 minutes, yeah, minutes, not seconds). This is very slow. If I submit a bbox that matches a particular tile, the map is returned instantly. How could it take so long to generate the world map? How to fix that? Anything I'm missing? Any idea? I'm not using tile cache yet. But I think 2.5 minutes for world view is way too slow. Something must be wrong. If you know of any clues, let me know. Thanks for your help. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto: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 mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Plotting points as a line from sqlite database
Gents, Thanks for these ideas, however I cannot seem to find a MakeLine function in spatialite 2.4.0. Where should I be looking? Thanks Ian -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, June 30, 2011 6:44 AM To: Stephen Woodbridge; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-ad jacent.html Another example is in this thread from the Spatialite list: http://groups.google.com/group/spatialite-users/browse_thread/thread/002 0f8e907ae9226 You will likely need recent versions of both Spatialite and OGR to make it work. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, June 29, 2011 10:49 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Plotting points as a line from sqlite database On 6/29/2011 10:13 PM, Ian Walberg wrote: I hope this isn't too stupid a question. Would like to display a list of positions in an sqlite database as a line, to show the flight path of an aircraft. The data is in the db as Lat, Long and point (lat, long) We can display the positions as individual dots but not as a line, I fear the problem is that the data is a point. As the data is being accumulated we would prefer not to create a new line in the database each time if possible. Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W ___ 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
RE: [mapserver-users] Plotting points as a line from sqlite database
Ian, Take a look at 2.4.0-RC5 http://www.gaia-gis.it/spatialite-2.4.0-5/spatialite-sql-2.4-5.html#p5 Look under SQL utility functions [non-standard] for geometric objects David. -Original Message- From: Ian Walberg [mailto:ian.walb...@airborne.aero] Sent: Thursday, July 28, 2011 12:41 PM To: Fawcett, David (MPCA); Stephen Woodbridge; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database Gents, Thanks for these ideas, however I cannot seem to find a MakeLine function in spatialite 2.4.0. Where should I be looking? Thanks Ian -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, June 30, 2011 6:44 AM To: Stephen Woodbridge; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-ad jacent.html Another example is in this thread from the Spatialite list: http://groups.google.com/group/spatialite-users/browse_thread/thread/002 0f8e907ae9226 You will likely need recent versions of both Spatialite and OGR to make it work. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, June 29, 2011 10:49 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Plotting points as a line from sqlite database On 6/29/2011 10:13 PM, Ian Walberg wrote: I hope this isn't too stupid a question. Would like to display a list of positions in an sqlite database as a line, to show the flight path of an aircraft. The data is in the db as Lat, Long and point (lat, long) We can display the positions as individual dots but not as a line, I fear the problem is that the data is a point. As the data is being accumulated we would prefer not to create a new line in the database each time if possible. Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W ___ 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
RE: [mapserver-users] Plotting points as a line from sqlite database
David, That looks better, let me test if we can now do what we need. Many thanks Ian -Original Message- From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] Sent: Thursday, July 28, 2011 11:39 AM To: Ian Walberg; Stephen Woodbridge; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database Ian, Take a look at 2.4.0-RC5 http://www.gaia-gis.it/spatialite-2.4.0-5/spatialite-sql-2.4-5.html#p5 Look under SQL utility functions [non-standard] for geometric objects David. -Original Message- From: Ian Walberg [mailto:ian.walb...@airborne.aero] Sent: Thursday, July 28, 2011 12:41 PM To: Fawcett, David (MPCA); Stephen Woodbridge; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database Gents, Thanks for these ideas, however I cannot seem to find a MakeLine function in spatialite 2.4.0. Where should I be looking? Thanks Ian -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, June 30, 2011 6:44 AM To: Stephen Woodbridge; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-ad jacent.html Another example is in this thread from the Spatialite list: http://groups.google.com/group/spatialite-users/browse_thread/thread/002 0f8e907ae9226 You will likely need recent versions of both Spatialite and OGR to make it work. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, June 29, 2011 10:49 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Plotting points as a line from sqlite database On 6/29/2011 10:13 PM, Ian Walberg wrote: I hope this isn't too stupid a question. Would like to display a list of positions in an sqlite database as a line, to show the flight path of an aircraft. The data is in the db as Lat, Long and point (lat, long) We can display the positions as individual dots but not as a line, I fear the problem is that the data is a point. As the data is being accumulated we would prefer not to create a new line in the database each time if possible. Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W ___ 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
FW: [mapserver-users] display labels as an integer instead of scientific notations [SEC=UNCLASSIFIED]
Hi Mark, You can use an OGR connection for formatting of number fields when labelling in MapServer version 5.x. I think you need GDAL 1.6 or later. For example with a shapefile called test.shp with a field, testfld1, you can do the following to show only two decimal places. LAYER .. CONNECTIONTYPE OGR CONNECTION test.shp DATA select CAST(testfld1 AS numeric (4,2)) from test .. CLASS ... TEXT ([testfld1)] LABEL .. END END END Regards, Kathleen From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, 28 July 2011 5:26 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] display labels as an integer instead of scientific notations. Hello, I have a label that displays a number in scientific notation; for example 2.08+e002. I would like the label to display as an integer such as 2.08. In the past I asked a similar question about HTML templates and someone mentioned that I should use [item name=area precision=2] Unfortunately, the statement seems invalid as a label in the .map file. Does anyone know how I can display a number as an integer? Or will I have to convert all my values to Text? I am using mapserver 5.4 Thanks Mark ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users