Re: [MapServer-users] Missing blank in SQL

2024-06-26 Thread Sven Schroeter via MapServer-users
Hi,  "USING SRID...", try this: DATA "GEOM FROM TEST_TABLE USING UNIQUE objid_parent USING SRID=25832" Greetings Sven Am 26.06.2024 um 12:16 schrieb G. Völkl via MapServer-users: Hello In the map file is this statement DATA "GEOM FROM TEST_TABLE using unique objid_parent SRID 25832" I g

Re: [MapServer-users] I want to change Map

2023-11-28 Thread Sven Schroeter via MapServer-users
Hi, Tile-based maps are provided in a predefined tileset. In the case of Google or OSM, for example, this is usually in EPSG 3857 and is defined in a grid with corresponding resolutions for the different zoom levels (always based on an extent): https://mapserver.org/mapcache/config.html#preco

Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout

2023-11-13 Thread Sven Schroeter via MapServer-users
users On Behalf Of Sven Schroeter via MapServer-users Sent: Monday, November 13, 2023 10:44 AM To: mapserver-users@lists.osgeo.org Subject: Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout Hi Jan, maybe you need this:          //SWIG          if($mapscriptSwig) {         

Re: [MapServer-users] PHP-Mapscript: write imageObj to stdout

2023-11-13 Thread Sven Schroeter via MapServer-users
Hi Jan, maybe you need this:        //SWIG        if($mapscriptSwig) {            echo msIO_getStdoutBufferBytes();        }else{            echo ms_iogetStdoutBufferBytes();        } Sven Am 10.11.2023 um 18:59 schrieb Jan Hartmann via MapServer-users: Hi, In

Re: [MapServer-users] mapserver 5 installation

2023-06-19 Thread Sven Schroeter
Hi Valeri, I have created a document for the installation under the IIS, where the map server runs cleanly via the FastCGI module. In addition, the map server is not addressed as mapserv.exe, but as an alias, e.g. mapserv.fcgi, which some firewalls will thank you for. My doku is in german, whic

Re: [MapServer-users] Is there a way to make OPACITY depends of SCALE?

2023-03-30 Thread Sven Schroeter
Hi, I think that would only be possible with several layers  in a GROUP at the moment... Greetings Sven Am 30.03.2023 um 11:53 schrieb Carlos Neves (LREC): Hi List, Is there a way to change OPACITY by scale? The goal is to show Orthophotomaps under risk areas. LAYER # Rock Fall Risk Mo

Re: [MapServer-users] Tutorials for creating time dimension images and good web frontends for dynamically changing map projects?

2022-10-14 Thread Sven Schroeter
here are some quick ideas which tools could be interesting in this context: If you want to start with python (or php) then I would think about using mapserver based on mapscript. https://mapserver.org/mapscript/index.html You can use ogr2ogr to easily create shapefiles. For meteorological analy

Re: [MapServer-users] "Emergency" map server on Raspberry Pi - raster/PNG source in folder structure

2022-10-12 Thread Sven Schroeter
that's exactly what I thought;-) You can also do this with QGIS Am 12.10.2022 um 16:57 schrieb Stefan Gofferje: Hi, On 10/12/22 16:37, Sven Schroeter wrote: I don't know if I understood you correctly, but I think the solution for you would be an image catalog, right? Then you

Re: [MapServer-users] "Emergency" map server on Raspberry Pi - raster/PNG source in folder structure

2022-10-12 Thread Sven Schroeter
Hi Stefan, I don't know if I understood you correctly, but I think the solution for you would be an image catalog, right? Then you would have only one layer for the UTM maps. In the mapfile it would look like this, in the .dbf in the column "location" would be the paths to the png data. LAYE

Re: [mapserver-users] Mapserver 8, PHP 8 and Mapscript

2022-07-22 Thread Sven Schroeter
Hi Jeff, thanks, I have a problem when using -DWITH_PHPNG=ON \ Is that SWIG still expects PHP 7 and therefore errors occur during make [ 99%] Swig compile ../mapscript.i for php7 [ 99%] Built target php_mapscriptng_swig_compilation Scanning dependencies of target php_mapscriptng [ 99%] Build

[mapserver-users] Mapserver 8, PHP 8 and Mapscript

2022-07-21 Thread Sven Schroeter
Hi, I have a Problem compiling with Mapserver 8, PHP 8 and Mapscript on Debian 11 Bullseye I have downloaded Mapserver 8.0 beta and configured it as follows: |cmake-DCMAKE_INSTALL_PREFIX=/opt \| |-DCMAKE_PREFIX_PATH=/usr/local:/opt \| |-DWITH_CLIENT_WFS=ON \| |-DWITH_CLIENT_WMS=ON \| |-DW

Re: [mapserver-users] Announcing MS4W 5.0-beta1

2021-12-15 Thread Sven Schroeter
Hi Jeff, thank you for this beta version! I got ms4w installed without any problems. When I start the examples it comes to an error message regarding proj, even if I copied the proj from the folder C:\ms4w\share\proj to the C:\ms4w, or have I misunderstood something? If I put in the local.map C

Re: [mapserver-users] INSPIRE WMS - INSPIRE

2021-09-16 Thread Sven Schroeter
Hi Marga, maybe this is helpful: https://mapserver.org/ogc/inspire.html Greetings Sven Am 16.09.2021 um 10:08 schrieb CALETRIO ARCOS, MARGARITA: Hi, I am trying to get a validated INSPIRE View Map Service. I haven’t found a complete information about how to write the .map to obtain the co

[mapserver-users] PHP Mapscript on Debian 10

2021-06-14 Thread Sven Schroeter via mapserver-users
Hi, I am trying to get PHP Mapscript to run stably on a Debian 10 machine. The installation actually worked fine and everything is running, only there is an error after each automatic nightly restart of the Apache server. After that PHP continues to run, but the Mapscript module does not work

Re: [mapserver-users] HTML Legends with MapServer

2020-05-07 Thread Sven Schroeter
="some other template"] so I wonder if it might be possible to extend that functionality to HTML legend processing. Do you have a particularly complex example you could share with me? --Steve On Thu, May 7, 2020 at 4:42 AM Sven Schroeter <mailto:schroe...@netgis.de>> wrote:

[mapserver-users] HTML Legends with MapServer

2020-05-07 Thread Sven Schroeter
Hi all, i have been using html legend templates for the mapserver for a very long time. With many layers such a template can become very long and confusing. Is there a possibility to split such a template into several files and e.g. include certain areas like in the mapfile? Maybe I could solv

Re: [mapserver-users] Problem with UNION layer and labelling

2019-10-20 Thread Sven Schroeter
Hi Oliver, this is a complex SQL statement and I would always store such things in a view on the database. Then you can visually check if all data comes as it should. Otherwise it could be due to the encoding of the data records, I sometimes had problems with it in the past. By the way, you ca

Re: [mapserver-users] Download Windows binaries of MapServer

2019-09-27 Thread Sven Schroeter
Hello, I don't think the ms4w page is available right now. If you need Windows binaries, you can also download the version of gisinternals: https://www.gisinternals.com/release.php You can quickly download the latest version of ms4w 4.01 here, I just put it on our server: https://netgis.de/down

[mapserver-users] WFS PHP Wrapper for POST body Request

2019-08-15 Thread Sven Schroeter
Hi, I'm using a WFS Wrapper written in PHP with following Code (MS Version 7.x): ... try {         $oMap = ms_newMapobj($mymapfile);     } catch (Exception $e) {         echo 'Exception: ', $e->getMessage(), "\n";         ms_ioresethandlers();         $oMap->free();         unset($oMap);        

[mapserver-users] Fwd: Re: [MS4W-Users] transparency with php mapscript

2019-05-22 Thread Sven Schroeter
Hi all, I'm fighting with the SWIG PHP MapScript Opacity again and found a very strange behavior. Here is my test script: include("../includes/phpmapscriptng-swig/mapscript_70400.php"); $map = new mapObj(MAPFILE_PATH.'test.map'); // set image format $map->selectOutputFormat("image/jpeg"); $o

[mapserver-users] transparency with php mapscript

2019-05-16 Thread Sven Schroeter
Hello, I test current php mapscript versions under Windows and try to give a layer transparency. With mapserver versions < 7 this was possible: $layer_poly->opacity = 68; With the version MS4W 3.3.1 with Mapserver > 7 and PHP Mapscript it works like this: $layer_poly->updateFromString('LA

[mapserver-users] PHP Mapscript Swig

2019-05-10 Thread Sven Schroeter
Hi, sorry for the cross-post, but maybe there's someone here who doesn't read the ms4w list... I'm using the new MS4W 4.0.0 and try to build a WMS Wrapper for the new PHP Mapscript with Swig. I am currently writing the complete PHP mapscript code from my client so that it runs with both versi

[mapserver-users] dynamic line pattern

2019-03-27 Thread Sven Schroeter
Hi, I have a line Layer and want to change the pattern dynamicly from the attribute table. Is it possible? e.g. I have this working:     CLASS NAME "buslines"         STYLE             COLOR [linecolor]             WIDTH 4             PATTERN 40 10 END         END END  # CLASS an

Re: [mapserver-users] What is the best way to generate WMS?

2018-09-21 Thread Sven Schroeter
, 21. September 2018 16:19 An: Sven Schroeter; 'mapserver-users' Betreff: Re: AW: AW: [mapserver-users] What is the best way to generate WMS? Does it work with PHP 7? Regards. I have no experience with other programming languages at mapserver, so far I only used php and that works we

Re: [mapserver-users] What is the best way to generate WMS?

2018-09-21 Thread Sven Schroeter
...@netgis.de Cc: f...@inbox.ru; mapserver Betreff: Re: [mapserver-users] What is the best way to generate WMS? On Fri, Sep 21, 2018 at 3:33 AM Sven Schroeter wrote: Hi Vladimir, the fastest way is probably the CGI variant. You write your mapfiles and deliver the data via mapserv and the corresponding

Re: [mapserver-users] What is the best way to generate WMS?

2018-09-21 Thread Sven Schroeter
wrong URL, this URL for the php mapscript wrapper example: https://geodaten.naturschutz.rlp.de/kartendienste_naturschutz/mod_ogc/ Von: Vladimir [mailto:f...@inbox.ru] Gesendet: Freitag, 21. September 2018 13:50 An: Sven Schroeter; 'mapserver-users' Betreff: Re: AW: [mapse

Re: [mapserver-users] What is the best way to generate WMS?

2018-09-21 Thread Sven Schroeter
/mapscript.html Greetings Sven Von: Vladimir [mailto:f...@inbox.ru] Gesendet: Freitag, 21. September 2018 13:50 An: Sven Schroeter; 'mapserver-users' Betreff: Re: AW: [mapserver-users] What is the best way to generate WMS? Thank you very much, Sven. Is it right to use FastCGI for les

Re: [mapserver-users] What is the best way to generate WMS?

2018-09-21 Thread Sven Schroeter
Hi Vladimir, the fastest way is probably the CGI variant. You write your mapfiles and deliver the data via mapserv and the corresponding parameters. In the case of PHP you have to build a wrapper, which is no problem. If your server runs under windows, this is the better variant, because many fi

Re: [mapserver-users] Ideas about how to render over/under roadways/bridges in maps?

2018-09-18 Thread Sven Schroeter
wow, really cool project and interesting configuration, thanks for sharing! Sven Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Edward Mac Gillavry Gesendet: Dienstag, 18. September 2018 23:58 An: Lime, Steve D (MNIT); Basques, Bob (CI-StPaul); mapserver-users

Re: [mapserver-users] Out-of-memory error due to huge NTv2 shift-file

2018-01-24 Thread Sven Schroeter
Hello, Michael, interesting, I have already experimented with the new NTv2 grid for Mannheim and we also use Mapserver + Postgis. I didn't have the problem you mentioned, but the test system wasn't in production yet. We transform the data directly and not on-the-fly. Unfortunately, I do not ha

Re: [mapserver-users] php mapscript set opacity

2017-12-12 Thread Sven Schroeter
}else{ $this_layer->set('opacity', $my_layeropacity); } Greetings Sven Von: Carlos Ruiz [mailto:boolean10...@yahoo.com] Gesendet: Samstag, 9. Dezember 2017 00:58 An: Sven Schroeter Betreff: Re: [mapserver-users] php mapscript set opacity Hi Sven,

[mapserver-users] php mapscript set opacity

2017-12-08 Thread Sven Schroeter
Hi, I'm trying to transfer old code from Mapserver 6 to Mapserver 7 and fail to set the transparency via PHP Mapscript. my code: $this_layer->set('opacity', 80); Works with MS 6, not in MS 7 (the layer is not displayed here) $this_layer->set('opacity', 100); Works with MS 6 and MS 7 I have

Re: [mapserver-users] php mapscript problem

2017-11-27 Thread Sven Schroeter
ember 2017 16:42 An: mapserver-users@lists.osgeo.org; Sven Schroeter Betreff: Re: [mapserver-users] php mapscript problem Sven, I haven't worked with Mapscript and IIS. However, I always free the map before unsetting it on PHP $oMap->free(); unset($oMap); Why don't you try this

[mapserver-users] php mapscript problem

2017-11-24 Thread Sven Schroeter
Hi, I write many mapfiles from an application to the file system under Windows and IIS. Another script loads this mapfiles and checks if it is the right syntax. If there is an syntax error in the mapfile I'll get an exeption: try { $oMap = ms_newMapobj($mymapfile); } catch (Exception $e)

Re: [mapserver-users] php Mapscript queryByAttributes

2017-10-12 Thread Sven Schroeter
N operator back in the future? Sven Von: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Gesendet: Mittwoch, 11. Oktober 2017 23:33 An: Carlos Ruiz; mapserver-users@lists.osgeo.org; Sven Schroeter Betreff: RE: RE: [mapserver-users] php Mapscript queryByAttributes Ugh, my bad. At least with the LI

[mapserver-users] php Mapscript queryByAttributes

2017-10-11 Thread Sven Schroeter
Hi, Old Server: PHP 5.4.36 with MS 6.4.1 (MS4W) New Server: PHP 5.6.31 with MS 7.0.6 (MS4W 3.2.2) My Test Script: $qfield = 'gid'; $qstring = "gid IN (1,2,3)"; @$datQuery = $query_layer->queryByAttributes($qfield,$qstring,MS_MULTIPLE); Works fine on the old Server, on the new Server no result.

[mapserver-users] getExtent for Postgis Layer

2015-03-12 Thread Sven Schroeter
Hi, I try to get the extent of my layers using php mapscript: $map= ms_newMapObj($mapfilepath.'\map.map'); $mylayer = $map->getLayerByName($getlayer); $layerextent = $mylayer->getExtent(); echo $layerextent->minx." ".$layerextent->miny." ".$layerextent->maxx." ".$layerextent->maxy; This works f

[mapserver-users] OFFSITE and RESAMPLE in MS 6

2014-02-20 Thread Sven Schroeter
Hi, I changed a project from MapServer 5.6 to MapServer 6.0.2. I have the problem, that my raster layers look bad, because PROCESSING RESAMPLE is ignored for rotated GeoTIFF images when OFFSITE is set. When I take the "OFFSITE 255 255 255" line out, then the RESAMPLE=AVERAGE setting works and my ra

[mapserver-users] MS4W Mapcache

2013-12-18 Thread Sven Schroeter
Hi, I'm testing the MapCache Apache Module from MapServer for Windows (MS4W 3.1.0-beta1) Works fine with the cache types disk, sqlite and tiff. Now I try to create a Cache for Offline with OpenLayers. I want to create a cache in the structure /z/x/y.png but using a template for the cache type disk

AW: [mapserver-users] MapServer Docs in Android Market

2011-07-28 Thread Sven Schroeter
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...@gmai

[mapserver-users] Mapserver docs mobile app

2011-06-20 Thread Sven Schroeter
Hi all, I'm playing with jquery mobile and phonegap and needed an example for a "Documentation App". So I have downloaded for test purposes the Mapfile documentation and changed the HTML and CSS a little bit. Now here is a Mapfile Documentation for mobile devices (android 2.2, tested on a HTC Desi

[mapserver-users] OFFSITE more values

2010-09-24 Thread Sven Schroeter
Hi, I have a rasterlayer with more than 1000 .ecw airial photos and want to set more than one RGB-value transparent with OFFSITE. This works fine: OFFSITE 0 0 0 but I need something like this: OFFSITE [0 0 0,1 1 1,1 2 1] Is there a possibility to solve my problem? Sven __

Re: [mapserver-users] mapserver >= 5.6 and querys via php-mapscript

2010-06-10 Thread Sven Schroeter
Hi Daniel, > > I don't think there is any way to get the "real" shapeindex unless you > have an id field in the data itself. You could file a ticket about this, > but for some data sources, such as Postgis, Oracle Spatial, and many OGR > ones, there is no concept of absolute record id, so if som

Re: [mapserver-users] setting up raster queries

2010-06-10 Thread Sven Schroeter
setting up raster queriesHi, use MS_MULTIPLE and MS_SINGLE e.g. with php-mapscript: If you want only one result use $datQuery = $layer->queryByPoint($qPoint, MS_SINGLE, 1); if you want more results: $datQuery = $layer->queryByPoint($qPoint, MS_MULTIPLE, 1); Greetings Sven - Original Messag

[mapserver-users] mapserver >= 5.6 and querys via php-mapscript

2010-06-10 Thread Sven Schroeter
Hi, I'm still fighting with mapserver >= 5.6 and querys via php-mapscript. My code for e.g. making a queryByRect works fine since I use resultsGetShape instead of getShape for version 5.6: //query @$datQuery = $query_layer->queryByRect($qRect); //number of objects $resnum = $query_layer->getNu

Re: [mapserver-users] rasterquery

2010-06-10 Thread Sven Schroeter
Frank, thank you for the hint, I have found that it only doesn't work with a ESRI Grid. With a .tif / geotif the rasterquery works without problems. Is this a bug? Greetings Sven ___ mapserver-users mailing list mapserver-users@lists.osgeo.org htt

[mapserver-users] rasterquery

2010-06-09 Thread Sven Schroeter
Hi, I try to make a raster query using phpmapscript My layer in the mapfile: # DHM ESRI Grid LAYER NAME "mydhm" DATA "dhm_vg/grid/dhm_vg" #grid dir STATUS default TYPE RASTER TEMPLATE "template/query.html" END My php code: //load mapfile $map= ms_newMapObj($mapfilepath.'\map

[mapserver-users] OGR/PHP Extension encoding

2010-05-26 Thread Sven Schroeter
Hi, I'm using the OGR/PHP Extension to convert data from a postgis database to ESRI Shape by using the actual extent of my mapclient. This works fine, you can test the "Export-Button" (in the left panel) on my client, choose for example "Naturschutzgebiete" in the dropdown of the export-dialog:

Re: [mapserver-users] php mapscript

2010-03-29 Thread Sven Schroeter
Hi, thank you very much, shapeObj resultsGetShape is the solution. resultsGetShape works fine. But I don't understand why shapeObj getFeature is in the documentation? Sven - Original Message - From: Worth Lutz To: 'Sven Schroeter' ; Sent: Friday, March 26, 2010 11:09

Re: [mapserver-users] php mapscript

2010-03-25 Thread Sven Schroeter
Any idea? Sven - Original Message - From: "Alan Boudreault" To: Cc: "Sven Schroeter" Sent: Thursday, March 25, 2010 2:32 PM Subject: Re: [mapserver-users] php mapscript Sven, getShape() is deprecated. Use rather getFeature(). I suggest to also take a look at t

[mapserver-users] php mapscript

2010-03-25 Thread Sven Schroeter
Hi, I have an old php mapscript code that works fine with mapserver 5.02 or 5.2, but not with 5.6.1. The code runs an attribute tabe from a postgis layer and different querys i.e. queryByRect: ... @$datQuery = $query_layer->queryByRect($qRect); //number of objects $resnum = $query_layer->getN

[mapserver-users] MS4W

2010-03-18 Thread Sven Schroeter
Hi, the actual MS4W is v3.0 Beta 10 (Jan 27, 2010) Is there planned a new stable relaese in the near future? thanks Sven ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] arithmethic rotation values

2010-01-29 Thread Sven Schroeter
Hi, I have this layer: LAYER NAME "kanal_fliess_haltung" TYPE point STATUS on DATA kanal/Fliesspfeil.shp CLASS STYLE SYMBOL 'triangle' SIZE 10 COLOR 0 0 0 ANGLE [Drehung] END END END In my ange-field there are arithmethic rotation values, not geographic. So my symbol get

[mapserver-users] layer extent

2009-10-21 Thread Sven Schroeter
Hi, I try to get the layerextent with php mapscript (mapserver 5.02 on Windows): $layer = $map->getLayerByName($qlayer); $extentobj = $layer->getExtent(); echo $extentobj->minx." ".$extentobj->miny." ".$extentobj->maxx." ".$extentobj->maxy; This works fine with shape-layers but not with postgi

Re: [mapserver-users] ms_newprojectionobj

2009-07-03 Thread Sven Schroeter
m: "Jeff McKenna" To: Sent: Friday, July 03, 2009 1:41 PM Subject: Re: [mapserver-users] ms_newprojectionobj Sven Schroeter wrote: What is wrong with the second installation? Is there a different geosversion, how can I test this? You could test it on both servers with a Windows pack

Re: [mapserver-users] ms_newprojectionobj

2009-07-03 Thread Sven Schroeter
Hi, thanks for the hint, but I checkt the proj already, it's the same. I work with Windows and have the same proj-dir under C:\proj installed on both servers. Any idea? Sven - Original Message - From: "Milo van der Linden" To: "Sven Schroeter" Cc: Se

[mapserver-users] ms_newprojectionobj

2009-07-03 Thread Sven Schroeter
Hi, I'm using php-mapscript to project a point from epsg:31466 (Gauss-Krueger-Zone2) to epsg:4326 (WGS84): //create point $qPoint = ms_newPointObj(); $qPoint->setXY(2521189,5541667); // Calculate -> WGS84 $projInObj = ms_newprojectionobj("init=epsg:31466"); $projOutObj = ms_newprojectionobj("

Re: [mapserver-users] GetFeatureInfo in XML

2009-05-06 Thread Sven Schroeter
InfoFormat by setting the wms_feature_info_mime_type keyword in the web metadata section of your mapfile. Regards, Pål Kristensen Sven Schroeter wrote: Hi all, I am currently experimenting with Web Map Services and a custom PHP wrapper. In this script for a GetFeatureInfo-Request wit

[mapserver-users] GetFeatureInfo in XML

2009-05-04 Thread Sven Schroeter
Hi all, I am currently experimenting with Web Map Services and a custom PHP wrapper. In this script for a GetFeatureInfo-Request with info_format=application/vnd.ogc.wms_xml or info_format=text/xml a XML document is generated. This works well, a XML-template is set in the mapfile dynamically:

[mapserver-users] ArcSDE-Support for php mapscript

2009-03-17 Thread Sven Schroeter
Hi all, My customers System: Windows 2003 Server with IIS 6, PHP 5.2.5 MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLI

[mapserver-users] apache warning TIFFReadDirectory

2009-03-16 Thread Sven Schroeter
Hi, I'm working with MapServer version 5.0.2 (php mapscript) on a Apache 2.2.4 webserver. Everything works fine but Apache logs following warning: Warning 1: TIFFReadDirectory:Unknown field with tag 37522 (0x9292) encountered I'm using raster-data (.tif with .tfw) in an image catalogue. Any id

[mapserver-users] get connectiontyp via mapscript

2009-03-05 Thread Sven Schroeter
Hi all, I try to get the connectiontyp via mapscript, this works: $layer = $map->getLayerByName($qlayer); $contyp = $layer->connectiontype; I get back a "1" for shapefiles and a "6" for Postgis-layers. Where can I find the other types? Thanks Sven

[mapserver-users] incorrect minscale using php mapscript

2009-02-17 Thread Sven Schroeter
Hi all, I'm using php mapscript (MS 5.2.1 on Windows) in my client and have problems with the minscale from the WEB-Section of my mapfile. For example if I set MINSCALE 1 on an imgsize with 1618 x 907 pixels the minscale for creating an image is 17848 on an imgsize with 822 x 503 pixe

Re: [mapserver-users] Displaying points on the map only for certaintime period

2008-09-25 Thread Sven Schroeter
Hi, that depends on your client application. For example you can update the map via php-mapscript with ajax. For a periodical request I use the prototype javascript framework: http://www.prototypejs.org/api/ajax/periodicalUpdater greetings Sven - Original Message - From: ramya srini

[mapserver-users] query case insensitive

2008-09-24 Thread Sven Schroeter
Hi all, I'm using the queryByAttributes-function of PHP-Mapscript with the LIKE (~) operator for strings (out of a POSTGIS-table): $queryString = "nom_bande ~ 'WT'"; $queryItem = "nom_bande"; @$datQuery = $layer->queryByAttributes($queryitem,$queryString,MS_MULTIPLE); Every dataset that conta

Re: [mapserver-users] GetFeatureInfo for number in textfield

2008-09-02 Thread Sven Schroeter
he work around would be to rename the column in your SQL statement (eg "nr as mynr"). Steve "Sven Schroeter" <[EMAIL PROTECTED]> 09/01/08 10:54 AM >>> Hi, My System: Mapserver 5.02 on Win 2003 Server with Postgres/Postgis 8.3/1.3. I make a GetFeatureInfo Re

[mapserver-users] GetFeatureInfo for number in textfield

2008-09-01 Thread Sven Schroeter
Hi, My System: Mapserver 5.02 on Win 2003 Server with Postgres/Postgis 8.3/1.3. I make a GetFeatureInfo Request from a WMS-Service: With INFO_FORMAT=text/plain every field from my Postgis-table comes with a correctly result: For example GetFeatureInfo results: Layer 'naturschutzgebiet' Feature

[mapserver-users] toWKT() method

2008-07-14 Thread Sven Schroeter
Hi all, I'm using PHP-Mapscript with GEOS (Mapserver 5) to get a WKT-String from a POSTGIS-Table: $mywkt = $shpobj->toWKT(); Everything works fine for POLYGON, LINESTRING and POINT - tables. If I try the "toWKT()" Method for MULTIPOLYGON-Tables I get back a POLYGON WKT-String. What can I do?

Re: [mapserver-users] Accessing raster cell values

2008-05-29 Thread Sven Schroeter
Hi, if you have access to the mapfile, you can make a queryByPoint with mapscript (i.e with an ajax-function) You have to send your point-coordinats to the script like this: $coord = split(',',$_POST["coord"]); dl('php_mapscript.dll'); //load mapfile $map= ms_newMapObj($mapfilepath.'\yourmap.