Re: [MapServer-users] How to fetch a wfs layer in openLayers

2022-10-30 Thread Thomas Gratier
Hello,

A least, you seem to got issues from 2 parts:

First,

```
const featureRequest = new ol.format.WFS().writeGetFeature({
srsName: 'EPSG:3857',
featureNS: 'http://openstreemap.org',
featurePrefix: 'osm',
featureTypes: ['emprise_3857'],
outputFormat: 'application/json',
filter: new ol.format.filter.equalTo('numoa', '25366'),
})
```

You want to use namespace whereas I'm not sure Mapserver use the same
namespace or use any at all. The original server in the OpenLayers sample
alias `http://openstreemap.org` to `osm` as you can see at
https://ahocevar.com/geoserver/wfs?request=GetCapabilities&service=WFS&version=2.0.0


2nd issue: as you guessed, maybe, your Mapserver may not return JSON. You
send it a POST with XML e.g `new
XMLSerializer().serializeToString(featureRequest)` where your
`featureRequest` contains `outputFormat: 'application/json'`. You may try
using `outputFormat: 'application/gml+xml; version=3.2'`. I suppose your
Mapserver support WFS 2.0 otherwise you may need `text/xml;
subtype=gml/2.1.2` or `text/xml; subtype=gml/3.1.1`

In all case, before you try the part

```
.then(function (json) {
  ...
  ...
})
```

To troubleshot, you may change you code to

```
fetch(`http://blabla/cgi-bin/mapserv.exe?MAP=c:/.../naasp_ol.map`, {
method: 'POST',
body: new XMLSerializer().serializeToString(featureRequest),
})
.then(function (resp) {
return resp.text();
})
.then(function (text) {
// See potential errors message
console.log(text)
})
```

To troubleshot, most of the time, I go "outside" of my OpenLayers code.
OpenLayers generates magically a payload to send to a Mapserver endpoint.
In fact, except, the syntax is in JS, the first issue is about sending the
"right" content to this endpoint.

If you go to
https://openlayers.org/en/latest/examples/vector-wfs-getfeature.html, open
your browser Developper Tools, use the Network panel, filter to get the
post http call and use the "Copy as curl"
https://everything.curl.dev/usingcurl/copyas, you will see the exact POST
content send to Mapserver endpoint

With this, you can simply debug by changing the content and run CURL in the
command line. Not sure it's more easy than JS but at least you will avoid
the JS language barrier to make your http calls to Mapserver endpoint.

Regards,

Thomas Gratier


Le mer. 26 oct. 2022 à 12:30, mathias cunault  a
écrit :

> Mapserver 7.6.0 & OL6
>
> My goal is to find a feature in a WFS layer and zoom on it using
> openLayers.
> Following this example
> https://openlayers.org/en/latest/examples/vector-wfs-getfeature.html, I
> am trying to do the same with Mapserver.
> I am not very familiar with Javascript so I feel uncomfortable in this
> exercise.
> I wrote :
> const featureRequest = new ol.format.WFS().writeGetFeature({
> srsName: 'EPSG:3857',
> featureNS: 'http://openstreemap.org',
> featurePrefix: 'osm',
> featureTypes: ['emprise_3857'],
> outputFormat: 'application/json',
> filter: new ol.format.filter.equalTo('numoa', '25366'),
> })
>
> console.log(featureRequest)
>
> fetch(`http://blabla/cgi-bin/mapserv.exe?MAP=c:/.../naasp_ol.map`, {
> method: 'POST',
> body: new XMLSerializer().serializeToString(featureRequest),
> })
> .then(function (rep) {
> return rep.json();
> })
> .then(function (json) {
> const features = new ol.format.GeoJSON().readFeatures(json)
> new ol.source.Vector.addFeatures(features)
> map.getView().fit(new ol.source.Vector.getExent())
> })
> But the chrome console says that there is an issue with the promise that
> it is not a valid JSON.
> Is it coming from the fetch I wrote in a bad way or a problem with
> application/json ?
> Indeed I read in Mapserver doc that only mapserver 8+ could handle
> application/json (from what I understood)
>
> Maybe it is both? I feel a bit lost.
> I tried to find more examples and doc on the net, but nothing clear for
> me. Maybe you can help?
> Thanks
>
>
> *--*
> *Mathias Cunault*
>
> *référent SIG / Admin Caviar*
>
> *Inrap Tours - 148 av. Maginot37000 TOURS06 32 05 98 96*
> abonnez-vous à la lettre d'information de l'Inrap : http://ww
> <http://www.inrap.fr/newsletter.php>w.inrap.fr/newsletter.php
> <http://www.inrap.fr/newsletter.php>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] MB Tiles vs. UTF grids

2022-09-02 Thread Thomas Gratier
Hello,

You have the answer at https://github.com/mapbox/mbtiles-spec#utfgrid Two
specs. In old days, utfgrid was part of the mbtiles spec directly
- mbtiles = contains raster or vector tiles
- utfgrid = store in the same scheme (xyz) json blob to be able to make
interactive map

Most of the time, when using mbtiles = you create a sqlite file
pregenerated and you serve raster/vector tiles and optionally utfgrid using
a small server without any mapping logic. The advantage = any hosting can
do it. Drawback = Can't refresh on the fly.

The alternative approach is to use a web map server that's able to read a
geospatial datasource and output from it an image/vector/utfgrid like if it
was serve from a mbtiles with yoururl///.png (for raster) or
yoururl///.pbf (for vector) or yoururl///.json (for
utfgrid) but the data behind behind the scene is not stored in a mbtiles.
Advantage = clients libraries (OpenLayers, Leaflet,...) are able to consume
raster/vector tiles or utfgrid like if served from static mbtiles. Drawback
= special hosting to deploy and use your web map server.

Not sure it's enough clear.

Regards,


Thomas Gratier



Le sam. 3 sept. 2022 à 01:05, Scott  a écrit :

> I'm ill equipped to answer your question directly.
>
> However, as you delve into the world of vector tiles I'd strongly
> suggest taking a look a FlatGeoBuf (.fgb). It's an index format
> supported by GDAL and MapServer. It's very fast and painless.
>
> The home page has demo's for openlayers, leaflet and mapbox, using a
> single 12GB census data file. Leaflet seems to be the most responsive.
>
> http://flatgeobuf.org/
>
>
>
>
> On 9/2/22 15:22, karsten wrote:
> > Hi All,
> > For the first time, I am diving into actually using vector tiles and or
> > UTF grids on an OpenLayers map. I am confused  about UTF grids,
> > especially I could not find clear answers whether UTFGrids have been
> > completely replaced by MB Tiles or if UTF Grids are now a subset of MB
> > Tiles. Posts on the web seem to suggest that UTF grids can be stored
> > inside MB Tiles
> > <
> https://medium.com/@pyin001/utfgrid-and-mbtiles-map-file-decoding-on-android-864487697752>.
>
> > Note that I am trying to stay outside the Mapbox empire (as much as
> > possible) and trying to use GDAL, MapServeretc.
> > GDAL can produce MB tiles (but not sure if that includes UTF grid info
> > as well) and MapServer can deliver UTF grid via WMS on the fly, but not
> > sure how performance is so far ...
> > Would anyone have some insights ?
> > Thanks
> > Karsten Vennemann
> > www.terragis.net <http://www.terragis.net>
> >
> > ___
> > MapServer-users mailing list
> > MapServer-users@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] vector tiles?

2022-02-19 Thread Thomas Gratier
Hi,

The code has been merged https://github.com/MapServer/MapServer/pull/5376
but as you can see in the PR the documentation page has never been created.
The demo code mentioned in the RFC works
https://mapserver.org/development/rfc/ms-rfc-119.html#bug-id-and-references


Regards

Thomas Gratier

Le sam. 19 févr. 2022 à 03:11, Richard Greenwood <
richard.greenw...@gmail.com> a écrit :

> Are vector tiles supported and documented? My searches only find RFC 119.
>
> --
> Richard W. Greenwood
> www.greenwoodmap.com
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] server geojson data as input to map file

2021-06-16 Thread Thomas Gratier
Hi Jeff,

Could be wrong but your exemple use a static GeoJSON file whereas flask
datasource would more probably be
http://urlflaskserver/my_end_point/layername.geojson

So

CONNECTIONTYPE OGRCONNECTION "name.json"DATA "layername"

would be

CONNECTIONTYPE OGRCONNECTION
"/vsicurl/http://urlflaskserver/my_end_point/layername.geojson"DATA
"layername"

FYI, above untested but considering it may work because it could inherit
from GDAL/OGR behaviour like below and already mentioned for other
datasources e.g
https://mapserver.org/input/virtual-file.html#configure-mapserver-layer

Be aware that remote consumption a least on ogrinfo need an url ending like
it's a file e.g
# Working because geojson extension in the url (so GDAL can guess it's a
GeoJSON)
ogrinfo -so
https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_airports.geojson

# Not working whereas it's a GeoJSON
https://ahocevar.com/geoserver/wfs?request=GetFeature&service=WFS&version=1.1.0&outputFormat=application/json&typenames=usa:states
ogrinfo -so /vsicurl/
https://ahocevar.com/geoserver/wfs?request=GetFeature&service=WFS&version=1.1.0&outputFormat=application/json&typenames=usa:states

Regards

Thomas Gratier

Le mer. 16 juin 2021 à 16:24, Jeff McKenna 
a écrit :

> Hi Ahmet, yes in fact I recently worked on those documentation steps:
> https://mapserver.org/input/vector/geojson.html
>
> Please let me know if that page needs any enhancements.
>
> -jeff
>
>
>
> --
> Jeff McKenna
> GatewayGeo: Developers of MS4W, MapServer Consulting and Training
> co-founder of FOSS4G
> http://gatewaygeo.com/
>
>
>
>
> On 2021-06-16 11:20 a.m., Ahmet Temiz wrote:
> > Hi,
> > My server(flask) publishes data as geojson.
> > Can I get this data to mymapfile's Data as online?
> >
> > regards
> >
> >
> > --
> > Ahmet Temiz
> > Jeoloji Müh.
> > Afet ve Acil Durum Yönetimi Başkanlığı
> > Deprem  Dairesi Başkanlığı
> >
> >
> > 
> >
> > Ahmet Temiz
> > Geological Eng.
> >
> > Disaster and Emergency Management
> > of Presidency
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] OL3 email Forum

2017-05-29 Thread Thomas Gratier
Hi,

If it's a user question, go to the officially recommended tag at
https://stackoverflow.com/questions/tagged/openlayers (From right bottom
official page "Ask a question")
If it's a dev question about the library development itself, previous
recommanded link is the right one.

Regards,
Thomas Gratier

2017-05-26 16:32 GMT+02:00 Brent Fraser :

> Bob,
>
> Try:
>
> https://groups.google.com/forum/#!forum/openlayers-dev
>
>
> Best Regards,
> Brent Fraser
>
>
> On 5/25/2017 11:02 AM, Robert Vogt wrote:
>
>> Sorry for the off topic question, I just figured if
>> anyone would know if there is an OpenLayers Email Forum this group would.
>>
>> -Bob
>>
>> *** PLEASE NOTE ***
>> This message, along with any attachments, is for the designated
>> recipient(s) only and may contain privileged, proprietary, or otherwise
>> confidential information. If this message has reached you in error, kindly
>> destroy it without review and notify the sender immediately.  Any other use
>> of such misdirected e-mail by you is prohibited.  Where allowed by local
>> law, electronic communications with Zurich and its affiliates, including
>> e-mail and instant messaging (including content), may be scanned for the
>> purposes of information security and assessment of internal compliance with
>> company policy.
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Building Mapserver - missing strlcat... methods

2016-06-21 Thread Thomas Gratier
Hi,

"build map server 7.0.1 on linux": distro, architecture?

You should look at
https://github.com/mapserver/mapserver/blob/branch-7-0/.travis.yml to find
out more about MapServer deps.

Cheers


Thomas Gratier

2016-06-20 22:35 GMT+02:00 Cechini, Matthew F. (GSFC-423.0)[Science Systems
& Applications, Inc.] :

> I’m attempting to build map server 7.0.1 on linux and am getting the
> following errors.  I’m sure I’m missing some dependency… but google has
> failed me to figure it out.  Help?
>
> -- Looking for strrstr - not found
> -- Looking for strlcat - not found
> -- Looking for strlcpy - not found
> -- Looking for PQserverVersion in pq - not found
> -- Looking for pthread_create - not found
> -- Looking for pthread_create in pthreads - not found
>
> Matt
> .
> Matthew Cechini
> Contractor, Science Systems and Applications, Inc.
> NASA GIBS Systems/Software Engineer
> 410.205.6272
>
> ___
> 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] No Postgresql mapserver images

2013-07-27 Thread Thomas Gratier
Hello,

It seems to be more PostGIS related. Run the legacy.sql or
legacy_minimal.sql
See http://postgis.net/docs/postgis_installation.html for more details
But maybe, I'm wrong...

Regards

Thomas Gratier


2013/7/27 Michael McInnis 

>  Problem: Although I can use my mapserver install to draw shapefile maps
> I can’t draw maps from my postgres source. I can also display the postgres
> points in QGIS so I’m not sure what the problem is in mapserver.
>
>
>
> Ideas? Thanks in Advance !
>
>
>
>
> http://mapserver0/cgi-bin/mapserv?map=/media/D_Drive/www/gis/postgresMap.map&layer=airports&mode=map
>
>
>
> msDrawMap(): Image handling error. Failed to draw layer named 'airports'.
> msPostGISLayerWhichShapes(): Query error. Error (ERROR: function
> geomfromtext(unknown, integer) does not exist LINE 1: ...,'hex') as
> geom,"oid" from airports where geom && GeomFromTe... ^ HINT: No function
> matches the given name and argument types. You might need to add explicit
> type casts. ) executing query: select
> encode(ST_AsBinary(ST_Force_2D("geom"),'NDR'),'hex') as geom,"oid" from
> airports where geom && GeomFromText('POLYGON((-180.180360721443
> -90,-180.180360721443 90,180.180360721443 90,180.180360721443
> -90,-180.180360721443 -90))',find_srid('','airports','geom'))
>
>
>
> postgresMap.map file:
>
>
>
> MAP NAME airports EXTENT -180 -90 180 90
>
> SIZE 1000 500
>
> #SHAPEPATH "./data"
>
>
>
> SYMBOL
>
> NAME "circle-filled"
>
> TYPE ELLIPSE
>
> FILLED TRUE
>
> POINTS 1 1 END
>
> END
>
> LAYER
>
> CONNECTIONTYPE POSTGIS
>
> NAME airports
>
> CONNECTION "host=localhost dbname=Airports user=
> password= port=5432"
>
> PROCESSING "CLOSE_CONNECTION=DEFER"
>
> DATA "geom From airports"
>
> #DATA "geom From (select icao, geom From airports) as subquery
> using unique icao using srid=4326"
>
> STATUS ON
>
> TYPE POINT
>
> CLASS
>
> NAME "airportsClass"
>
> SYMBOL 'circle-filled'
>
> SIZE 2
>
> COLOR 255 22 22
>
> END
>
> END # Class
>
> END # Layer
>
> END # Map File
>
>
>
>
> Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701
>
> ___
> 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] About projection error in Python bindings

2013-06-01 Thread Thomas Gratier
Hello list,

I am unable to run Python Mapscript without an error
loadProjection(): Projection library error. Projection support is not
available
It happens for example in tests with maptest.py

My main problem here is that I have set PROJ_LIB=/usr/share/proj/ and  I
always have this error. On  the other side, from
http://myserver/cgi-bin/mapserv?..., it's fine.

I have done the compilation on Ubuntu 12.04 with Mapserver 6.2.1 with the
following configuration

./configure --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config
--with-gdal=/usr/local/bin/gdal-config
--with-geos=/usr/local/bin/geos-config --with-wmsclient --with-wfsclient
--with-wcs --with-wfs --with-postgis=yes --with-kml=yes
--with-xml-mapfile=yes --with-xslt=yes
--with-xml2-config=/usr/bin/xml2-config --with-fribidi-config=yes
--with-sos --with-curl-config=/usr/bin/curl-config --with-fastcgi=yes
--with-cairo=yes --with-python=/usr/bin/python2.7 --enable-python-mapscript

Any ideas?

Regards

Thomas Gratier
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Can not execute "make ./configure" command in mapcache downloaded folder

2013-05-17 Thread Thomas Gratier
Hello,

Read the INSTALL file
https://github.com/mapserver/mapcache/blob/master/INSTALL that say run
autoconf
when compiling using code from git

Regards

Thomas Gratier



2013/5/17 Hishan Melanga 

> Is the configure script file missing?
>
>
> On Fri, May 17, 2013 at 7:06 PM, Hishan Melanga  wrote:
>
>>
>> I downlaoded mapcache folder from the given link
>>
>> git clone git://github.com/mapserver/mapcache.git
>>
>>
>>
>> But I could not find a way to do the ./configure as specified in the
>> INSTALL file included inside that directory. Please help me to install this
>> and tell me how to make the configure file. Currently I am using osgeo-6.5.
>>
>> Thanks in advance.
>> --
>> හිෂාන් මෙලංග | Hishan Melanga <http://hishanmelanga.blogspot.com/>
>>
>
>
>
> --
> හිෂාන් මෙලංග | Hishan Melanga <http://hishanmelanga.blogspot.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] wfs getfeature returns invalid xml when using gml_constants

2013-04-20 Thread Thomas Gratier
Hello,

Only a clue but because it's  XML, you have to escape your ampersands: so &
become &
and for a full example

 "
http://10.10.4.41/cgi-bin/test.cgi?SERVICE=WCS&REQUEST=GetCoverage&IDENTIFIER=testdata_raw&VERSION=1.1.0
"
become
 "
http://10.10.4.41/cgi-bin/test.cgi?SERVICE=WCS&REQUEST=GetCoverage&IDENTIFIER=testdata_raw&VERSION=1.1.0
"

You can also try replacing & with hexadecimal notation &

Regards

Thomas Gratier
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapFile viewer

2012-12-14 Thread Thomas Gratier
Hello,

What is the advantage compare to OpenLayers built-in viewer (since 6.x
version) e.g http://mapserver.org/trunk/fr/openlayers.html ?

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] OGC spatial filter + SLD

2012-11-23 Thread Thomas Gratier
Hello,

Don't know exactly your case but you can maybe rely on runtime substitution
http://mapserver.org/cgi/runsub.html and spatial abilities of your database
e.g http://postgis.refractions.net/docs/ST_Within.html
or on filter (support within
http://mapserver.org/mapfile/expressions.html#spatial-expressions-that-return-a-logical-value-geos)
+ runtime substitution
In all case, a bit dirty compare to SLD filter but no choice it seems.

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] OGC spatial filter + SLD

2012-11-23 Thread Thomas Gratier
Hello,

I haven' try but it's not available refering to the doc
http://mapserver.org/ogc/sld.html#issues-found-during-implementation e.g
"Limitation of the FilterEncoding to comparison and logical filters. The
spatial filters were not made available since it required major changes in
MapServer WMS support."
"within" is a spatial filter so no luck it seems.

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver docs and i18n

2012-07-18 Thread Thomas Gratier
Hello,

Like Steve, I want  to know the statut of my pull request. Normally, it
will not impact other branch (my modifications are not intrusive)
I'm interested in any news about it.

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver docs and i18n

2012-07-04 Thread Thomas Gratier
Hello,

My answer are inline with bold cross *XX* just before (for mail
in html)
Uline of inline of inline start to be difficult to read ;)

Regards

ThomasG77

2012/7/4 thomas bonfort 

> Hi Thomas,
>
> I'm all for simplifying the translation workflow. I tend to dislike
> the current one we have setup because it is difficult for translators
> to keep track of what has been added/modified in the english version,
> resulting in outdated translated docs which in my opinion is worse
> than having no translation at all.
>
> More inline...
>
> On Tue, Jul 3, 2012 at 10:13 PM, Thomas Gratier
>  wrote:
> > Hello Jeff, hello all,
> >
> > # First think to understand
> >
> > I praise the Mapserver community and the team behind the engine.
> > I'm a big fan of Mapserver and Sphinx and I've always love the really
> great
> > documentation but I know people who deal only with there native language
> to
> > do the job. So translation is a core part of a project to extend
> popularity
> > accross countries (althought Mapserver popularity is already established)
> >
> > My motivation is to deal with the french translation with i18n and not
> with
> > RST.
> > I want to make think better, the way we do it is good but can be improve.
> > Why? Some thoughts to explain below
> >
> >
> > # Advantages
> >
> > 1. Fulfillment
> >
> > Really important for me because a community is based on humans who search
> > small and big achievements and it's more easy with i18n to measure the
> job.
> >
> > Imagine one rst file of 1000 lines (around 100 lines of empty lines or
> > special rst declarations)
> >
> > You generate is equivalent in pot file.
> > The number of string to translate is 430
> >
> > Offline:
> > Step by step you see what you've done and can by example, see that you've
> > done 86 lines so, 20% of the job is done for the file.
> > Your objective to go until 30%. When you reach it, you're happy. You've
> done
> > 10% more of the file translation.
> >
> > Online:
> > See this online app based on pottle for the Qgis community. You can see
> the
> > http://translate.qgis.org/fr/qgis-user-guide/ example.
> > In this case, you can make a survey of users who contribute, you can
> review
> > with others, you now if a file translation is completed. You can
> distribute
> > task between the community of users and not only of advanced users /
> > developpers.
> >
> > You can have a dedicated community of translators who care about content
> and
> > not about the way to use sphinx and others technical things.
> >
> > 2. Separate presentation from contents
> >
> > When you generate pot files, the string length is quite short. You don't
> > have to care too much about rst indent : you will not break anything.
> > If the presentation change, you content don't. I'm thinking about the
> annual
> > change for FOSS4G image. You have to backport it manually with a merge in
> > every langage version.
> >
> > 3. History and maintainability
> >
> > ## The typical workflow now
> >
> > You cut and paste a rst file and you make the translation. Ok it's nice!!
> > Why does I need to care about i18n? This guy is crazy!!
> >
> > Because now imagine, you've done the translation 3 years ago (your
> community
> > said "do it" and it was done).
> >
> > The content was in english (the letter are use to represent a block of
> > content in master version and number for content of translated example)
> >
> > In the past
> >
> > EnglishFrench
> >
> > A  111
> > B  22
> > C  33
> > D  44
> > E  55
> >   77
> > H  88
> >
> > Nowadays
> >
> > B  ??
> > C  ??
> > D  ??
> > FF  ??
> >   ??
> > H  ??
> >
> > The way you do if you kept during three years the file you use to
> translate
> > the original
> >
> >

Re: [mapserver-users] Mapserver docs and i18n

2012-07-03 Thread Thomas Gratier
Hello Jeff, hello all,

*# First think to understand*

I praise the Mapserver community and the team behind the engine.
I'm a big fan of Mapserver and Sphinx and I've always love the really great
documentation but I know people who deal only with there native language to
do the job. So translation is a core part of a project to extend popularity
accross countries (althought Mapserver popularity is already established)

My motivation is to deal with the french translation with i18n and not with
RST.
I want to make think better, the way we do it is good but can be improve.
Why? Some thoughts to explain below


*# Advantages*

*1. Fulfillment*

Really important for me because a community is based on humans who search
small and big achievements and it's more easy with i18n to measure the job.

Imagine one rst file of 1000 lines (around 100 lines of empty lines or
special rst declarations)

You generate is equivalent in pot file.
The number of string to translate is 430

Offline:
Step by step you see what you've done and can by example, see that you've
done 86 lines so, 20% of the job is done for the file.
Your objective to go until 30%. When you reach it, you're happy. You've
done 10% more of the file translation.

Online:
See this online app based on pottle for the Qgis community. You can see the
http://translate.qgis.org/fr/qgis-user-guide/ example.
In this case, you can make a survey of users who contribute, you can review
with others, you now if a file translation is completed. You can distribute
task between the community of users and not only of advanced users /
developpers.

You can have a dedicated community of translators who care about content
and not about the way to use sphinx and others technical things.

*2. Separate presentation from contents*

When you generate pot files, the string length is quite short. You don't
have to care too much about rst indent : you will not break anything.
If the presentation change, you content don't. I'm thinking about the
annual change for FOSS4G image. You have to backport it manually with a
merge in every langage version.

*3. History and maintainability*

*## The typical workflow now*

You cut and paste a rst file and you make the translation. Ok it's nice!!
Why does I need to care about i18n? This guy is crazy!!

Because now imagine, you've done the translation 3 years ago (your
community said "do it" and it was done).

The content was in english (the letter are use to represent a block of
content in master version and number for content of translated example)

In the past

EnglishFrench

A  111
B  22
C  33
D  44
E  55
  77
H  88

Nowadays

B  ??
C  ??
D  ??
FF  ??
  ??
H  ??

The way you do if you kept during three years the file you use to translate
the original

Compare both english version

A dissapear
B seems to stay the same (B is a block so are you sure
there no typo fixed?)
C is the same
D is the same
E dissapear
FF appear
 is the same
H is the same

Now find in the french file the corresponding

I now A dissapear in english so let's go delete it in the french
version

Find the equivalent in french of A (where it begins and finish) and
delete it
Find B block in english and see what was the french string
corresponding and replace now
Do the same for C, D
E dissapear so where is french equivalent (more difficult to find
where it begins and finish) to delete
FF appear so translate
Find G block in english and see what was the french string
corresponding and replace now.
Do the same for H.

You get at the end the result. You just do a semantic three way merge
manually (and I haven't imagine a case where there was reordering of
content or small string fix)

B  22
C  33
D  44
FF  66
  77
H  88

*## I18N workflow*

First translation

EnglishFrench

A  11
B  22
C  33
D  44
E  55
 

[mapserver-users] Mapserver docs and i18n

2012-07-03 Thread Thomas Gratier
Hello list,

I've been working since some weeks on making i18n available in Mapserver
docs. I've done some translation in the past of french part and I was fed
up with maintaining rst files languages to languages and not simple shorts
strings. For the french part, I've already backported all to i18n system.
I've already submit a pull request (e.g
https://github.com/mapserver/docs/pull/7) on Github but a community
feedback is welcome because this request can change the way we do
translations on the project.
For already existing translation, things can stay as they 're depending on
every langage community.
You can read more about the process
https://github.com/ThomasG77/docs/wiki/How_to-i18n
All inputs are welcome against like for

Regards

ThomasG77
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Failed to connect to github

2012-06-03 Thread Thomas Gratier
Hello,

This below will be better :)
git clone https://github.com/mapserver/mapserver.git mapserver-svn

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapfile Generators

2012-02-04 Thread Thomas Gratier
Hello

I never need to play with arc but look at http://www.mxd2map.org/
It may help you and it's opensource.

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Help needed with empty WFS layer

2011-05-23 Thread Thomas Gratier
Hello,

Most of the time, this error is related to spatial extent or units you use
at map or layer level e.g. the archives like
http://osgeo-org.1803224.n2.nabble.com/wfs-error-lt-gml-null-gt-missing-lt-gml-null-gt-td5074106.html

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapServer v GeoServer

2011-05-12 Thread Thomas Gratier
Hello,

You can look for example this comparison by P. Ramsey
http://s3.cleverelephant.ca/geoweb-mapserver.pdf

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Error consuming MapServer WMS service version 1.3.0 by many desktop clients

2011-05-05 Thread Thomas Gratier
Hello,

Maybe this trac bug can help http://trac.osgeo.org/mapserver/ticket/3525
It seems that "wms_exceptions_format" has to bet set to "XML" for WMS 1.3
Are you sure you really need to set wms_exceptions_format? You will restrict
your WMS service to only a WMS version.

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapfile syntax highlighting

2011-05-04 Thread Thomas Gratier
Hello,

Retrieve the ZIP
http://www.esnips.com/doc/947c00b1-9703-429d-8943-c6e1d4dd62f2/map_properties

For Ubuntu

wget
http://www.esnips.com/doc/947c00b1-9703-429d-8943-c6e1d4dd62f2/map_properties
unzip map_properties.zip
sudo cp map.properties /usr/share/scite/
sudo chmod 777 /usr/share/scite/map.properties
sudo gedit /usr/share/scite/SciTEGlobal.properties
#Before import matlab, add
import map

#Now open a mapfile in scite and you have syntax highlighting

You can have a look on
http://sites.google.com/site/gianpierocampanella/files
It's for Notepad++ highlighting but Scite and Notepad++ shared Scintilla
library behind.

Be careful, both solutions use mapserver syntax from one, two or more years.


Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problems with the WMS Client VERSION 1.3.0

2011-05-03 Thread Thomas Gratier
Hello,

After a look, my results are near the same. With  "wms_server_version"
 "1.3.0", I got the same error msBuildWMSLayerURL(): WMS connection error.
MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION
parameter in the connection string) but when I use wms_server_version 1.1.1,
positions between original layer and the one included into mapserver are OK.

Your test url
http://gdz.bkg.bund.de/wms_dtk2500?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=0&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=true

My localhost url (I don't hide map path)
http://localhost/cgi-bin/mapserv?map=/home/quelleville/SIG/wms130/mapfiles/mapfile_carte.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&STYLES=&FORMAT=image/png&LAYERS=0

The sample mapfile mapfile_carte.map (change paths)

MAP
CONFIG PROJ_LIB "/home/user/test/"
SYMBOLSET "/home/user/test/symbols.sym"
FONTSET "/home/user/test/FONT/fonts.list"
SHAPEPATH "home/user/test/deutschland"
NAME "DEUTSCHLAND" #name to give your map service
IMAGETYPE PNG24
EXTENT -180. -90. 180. 90.
SIZE 953 480
STATUS ON
TRANSPARENT ON
PROJECTION
"init=epsg:4326"
END
OUTPUTFORMAT
NAME 'AGGA'
DRIVER AGG/PNG
IMAGEMODE RGBA
END
WEB
IMAGEPATH "/home/user/test/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
"wms_title" "Deutschland Map"
"wms_onlineresource" "
http://localhost/cgi-bin/mapserv?map=/home/user/test/wms130/mapfiles/mapfile_carte.map&";

"wms_srs" "EPSG:4326"
END
END #End Web

LAYER
 NAME "0"
 TYPE RASTER
 STATUS ON
 CONNECTIONTYPE WMS
 CONNECTION "http://gdz.bkg.bund.de/wms_dtk2500?";
  METADATA
   "wms_title" "0"
   "wms_name""0"
   "wms_srs" "EPSG:4326"
   "wms_server_version"  "1.1.1"
   "wms_format"  "image/png"
 END
END

END # Map File

Hope it helps

Regards

ThomasG
GIS specialist

PS : Don't forget to zoom after you render map in your brower in both case.
If not, you may think that layers positions are differents althought they
are perfectly aligned. (for FF, I get this behavior)
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] how to install PHP MapScript extension on Windows wihtout Ms4w ?

2011-04-18 Thread Thomas Gratier
Hello,

I can only help you about how to see dll dependencies. For this, use
http://www.dependencywalker.com

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] srid dropped at postgis request

2011-02-04 Thread Thomas Gratier
Hello,

Have you done settings like in the docs e.g.
http://mapserver.org/input/vector/postgis.html

The DATA block will look something like below

DATA "the_geom from (select * from your_database where ... ) as foo using
unique gid using srid=27572"

Maybe it can help you solve your particular problem with srid lost in your
query.

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] srid dropped at postgis request

2011-02-03 Thread Thomas Gratier
Hello,

Why your bbox cover an area outside the Lambert II projected bounds (e.g.
http://spatialreference.org/ref/epsg/27572/ )?
Maybe your using the wrong projection because your POLYGON coordinates look
like this one http://spatialreference.org/ref/epsg/2154/

If you're sure your data are in the right projection, do your data in
PostGIS with an srid 27572 et not -1?

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers

2011-01-22 Thread Thomas Gratier
Hello,

Look with firebug the tiles url when hovering. There have wrong url

Not sure it will solve everything but

  server = "http://"; + location.host + "/";

must be something like

  server = "http://www.catastroloscabos.gob.mx/";

and because of this change all case like

   mlayer = new OpenLayers.Layer.MapServer("Manzanas",
 server + "www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?", {
   map: '/home/juribe/webcatastro/catastro.map',
   layers: 'm',
   map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false});
   map.addLayer(mlayer);

will look

   mlayer = new OpenLayers.Layer.MapServer("Manzanas",
 server + "cgi-bin/mapserv.fcgi", {
   map: '/home/juribe/webcatastro/catastro.map',
   layers: 'm',
   map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false});
   map.addLayer(mlayer);

If you have others issues, the best is to post now to the users-openlayers
list
http://lists.osgeo.org/mailman/listinfo/openlayers-users because your
questions for the moment seems to be more related to client side and not to
mapserver.

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers

2011-01-22 Thread Thomas Gratier
Hello,

Look on the code behind this page
http://www.catastroloscabos.gob.mx/Catastro/visor/visor.html.
It works with Openlayers and connect to the service and the layer you're
looking for.

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] XSL for WMS capabilities

2010-11-04 Thread Thomas Gratier
Hello,

See WMS Inspector Firefox plugin code. It renders directly wms into html so
I suppose there is behind an XSLT process for WMS.

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Tool for configure mapfile

2010-11-04 Thread Thomas Gratier
Hello,

Not only for this but look on GeoAdminSuite, there is a mapfile editor
included
http://www.geojava.org/index.html and the demo website
http://sd-11986.dedibox.fr:8080/gas/

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Where to download symbolset file

2010-08-17 Thread Thomas Gratier
Hello,

Look in the documentation
http://mapserver.org/mapfile/symbology/construction.html
At the bottom, there a link to download.

Regards

ThomasG
GIS specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] About shapefile generation in PHP with DBF

2010-08-06 Thread Thomas Gratier
Hello,

Look on http://shapelib.maptools.org/
There is in particular a php wrapper for shplib (done by Andrey Hristov).
shapelib is a library designed to create shp and manipulating dbf
http://svn.php.net/viewvc/pecl/shp/

Regards

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Translate MapServer Doc into french

2010-02-26 Thread Thomas Gratier
Hello,

I've started to translate 5 or 6 pages on Mapserver some weeks ago.
So, I have followed instructions on
http://trac.osgeo.org/mapserver/wiki/DocumentationTranslation to be a
commiter on the docs svn part
Waiting for Jeff McKenna answer. Post on the mapserver-dev list is coming.

Regards

ThomasG
GIS Specialist
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Duplicate entry on a page of the official documentation

2010-02-05 Thread Thomas Gratier
Hello list,

I don't know where I can report this.
So on this page http://mapserver.org/errors.html#errors
You will find twice the topic below.
msQueryByPoint: search returned no results
One is in the middle of the topic and one at the end.

ThomasG
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users