Re: [mapserver-users] Mapscript Python module version 7.6.0 not working with Python 3 > 3.6

2022-04-14 Thread Luca Delucchi
Il gio 14 apr 2022, 13:13 Marco Beri  ha scritto:

> Dear Mapserver Users,
>

Dear Marco,

I was not able to find a way to open an issue with this project
> https://pypi.org/project/mapscript/7.6.0/
>
> If you try to import the current mapserver module with Python 3 version
> major than 3.6 (which already reached his end of life) you encounter this
> error:
>
> ImportError: cannot import name '_mapscript' from partially initialized
> module 'mapscript' (most likely due to a circular import)
>
>
> Would you help me find a way to open a ticket or to do a pull request or
> whatever is the best way to help the developers to fix this problem?
>

I have the same problem but it seems related to virtualenv, no idea why.
The installed version from Debian package works properly


> Thanks a lot.
>
> Ciao.
> Marco.
>

Thanks
Luca

>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Floating point exception

2022-04-09 Thread Luca Delucchi
On Fri, 8 Apr 2022 at 15:35, Jeff McKenna  wrote:
>
> Ciao Luca,
>

Jeff,

> What happens when you pass the full query through ogrinfo with the
> "-sql" switch:
>
>ogrinfo -ro PG:"user= password= host=127.0.0.1 port=5432
> dbname=" -sql "select "short_name"::text,ST_AsBinary(("geom"),'NDR')
> as geom,"research_groups_id"::text from (select research_groups_id,
> short_name, geom from main.research_groups where
> ST_Contains(ST_GeomFromText('POLYGON((-15.2587587587588
> 35,-15.2587587587588 70,37.2587587587588 70,37.2587587587588
> 35,-15.2587587587588 35))',4326), geom)) as subquery"
>

it works properly

Layer name: sql_statement
Geometry: None
Feature Count: 54
Layer SRS WKT:
(unknown)
short_name: String (0.0)
geom: Binary (0.0)
research_groups_id: String (0.0)
OGRFeature(sql_statement):0
  short_name (String) = CROC
  geom (Binary) = 010100037AE1CE85E11940F279C5538F784840
  research_groups_id (String) = 1
..
OGRFeature(sql_statement):53
  short_name (String) = JdE
  geom (Binary) = 01010035B22B2D236519C0828FC18A53754340
  research_groups_id (String) = 55

At this point I tried to compile the 7.6 version and use the compiled
shp2img and I didn't get anymore the "Floating point exception"
problem. I don't know where it was coming from :-/

>
> -jeff
>

-- 
ciao
Luca

www.lucadelu.org
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Floating point exception

2022-04-08 Thread Luca Delucchi
On Fri, 8 Apr 2022 at 13:43, Jeff McKenna  wrote:
>
> Ciao Luca,
>

Ciao,

> I am wondering also if you tried to access the PostGIS data through
> ogrinfo yet (to confirm there is no data issue).  Note that I'd
> recommend GDAL 3.4.2, PROJ 8.2.1 with MapServer-main.
>
>   ogrinfo -ro PG:"user= password= host=127.0.0.1 port=5432
> dbname=" table -summary
>

yes this works

> Then, follow along the debugging document (
> https://www.mapserver.org/optimization/debugging.html ) and add the
> following inside your MAP object in mapfile:
>
>CONFIG "CPL_DEBUG" "ON"
>CONFIG "CPL_TIMESTAMP" "ON"
>CONFIG "PROJ_DEBUG" "ON"
>
> Then re-retry map2img with -all_debug 5, and look for the full SELECT
> query made to your database, and run that same query inside psql
> commandline.
>

using map2img as suggested by Even  I got this

Reading symbols from map2img...
(gdb) run
Starting program: /home/lucadelu/installati/bin/map2img -m
eurodeer_new.map -o eurodeer.png -all_debug 5 -conf mapserver.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffebf54700 (LWP 801419)]
[New Thread 0x7fffeb753700 (LWP 801420)]
msDrawMap(): Image handling error. Failed to draw layer named 'Reserch
groups'. 
msPostGISLayerWhichShapes(): Query error. Failed to build query SQL. 
msPostGISBuildSQL(): General error message. Failed to build SQL 'where'. 
msSearchDiskTree(): Search returned no results. Unable to open spatial
index for 
/home/lucadelu/github/euromammals/print_maps/././data/ne_10m_admin_0_sovereignty.qix.
In most cases you can safely ignore this message, otherwise check file
names and permissions. 
[Fri Apr  8 14:38:55 2022].491539: GDAL: In GDALDestroy - unloading
GDAL shared library.
[Thread 0x7fffebf54700 (LWP 801419) exited]
[Thread 0x7fffec613bc0 (LWP 801411) exited]
[Inferior 1 (process 801411) exited with code 01]


However using shp2img with a running map file I was able to get the
full postgis query and run it on a database returning the error
"Floating point exception" without any problem.

select "short_name"::text,ST_AsBinary(("geom"),'NDR') as
geom,"research_groups_id"::text from (select research_groups_id,
short_name, geom from main.research_groups where
ST_Contains(ST_GeomFromText('POLYGON((-15.2587587587588
35,-15.2587587587588 70,37.2587587587588 70,37.2587587587588
35,-15.2587587587588 35))',4326), geom)) as subquery


>
> -jeff
>

-- 
ciao
Luca

www.lucadelu.org
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Floating point exception

2022-04-08 Thread Luca Delucchi
On Fri, 8 Apr 2022 at 11:03, Rahkonen Jukka (MML)
 wrote:
>
> Hi,
>

Hi,

> Mapserver 8 has increased security and requires a special config file. The 
> best link for the documentation at the moment is probably  
> https://mapserver.org/development/rfc/ms-rfc-135.html (The message "See 
> mapserver.org/config_file.html for more information" points to non-existing 
> location).
>

thanks I was think this is needed only for web request not to test a mapfile

> Why did you select "Floating point exception" as the title of your message?

because my starting problem (using mapserver 7) is this one...

>
> -Jukka Rahkonen-
>

-- 
ciao
Luca

www.lucadelu.org
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Floating point exception

2022-04-08 Thread Luca Delucchi
Hi,

I compiled the github master version and used map2img, the output is
not helping so much...

map2img -m eurodeer_new.map -o eurodeer.png -all_debug 5
Cannot open configuration file /usr/local/etc/mapserver.conf.
msLoadConfig(): Unable to access file. See
mapserver.org/config_file.html for more information.
msDrawMap(): Image handling error. Failed to draw layer named
'Research groups'. 
msPostGISLayerWhichShapes(): Query error. Failed to build query SQL. 
msPostGISBuildSQL(): General error message. Failed to build SQL 'where'. 
msSearchDiskTree(): Search returned no results. Unable to open spatial
index for 
/home/lucadelu/github/euromammals/print_maps/././data/ne_10m_admin_0_sovereignty.qix.
In most cases you can safely ignore this message, otherwise check file
names and permissions. 
msLoadConfig(): Unable to access file. See
mapserver.org/config_file.html for more information. 

the 'Research groups' layer is defined like this

DATA "geom from (select research_groups_id, short_name, geom from
main.research_groups where ST_Contains(!BOX!, geom)) as subquery using
unique research_groups_id using srid=4326"

-- 
ciao
Luca

www.lucadelu.org
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Floating point exception

2022-04-03 Thread Luca Delucchi
On Fri, 1 Apr 2022 at 14:39, Jeff McKenna  wrote:
>
> Ciao Luca,
>

Ciao Jeff,

> I had earlier documented by usual PostGIS debugging steps at
> https://mapserver.org/optimization/vector.html#debugging-speed-issues-with-postgis
>
> Also, instead of the "-map_debug 3" option with shp2img, try "-all_debug
> 5" (use "3" if you just want to show the draw speed times)
>

I tried also with -all_debug but no debug messages appears only the error

> The goal would be to output the exact query that MapServer is trying to
> execute against your database, and then try running that query at the
> psql commandline.
>
> And, if all else fails, be sure to retry all of this with a build of
> today's MapServer "main" branch, and try with map2img.
>

Ok, I will try in the next days

> -jeff
>

-- 
ciao
Luca

www.lucadelu.org
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Floating point exception

2022-04-01 Thread Luca Delucchi
Hi all,

I'm getting "Floating point exception" error running shp2img, also
running with the debug option I don't get any other information.
The mapfile read data from PostGIS database, and If I use the same
mapfile with different database with the same tables I don't get this
error, so I think the problem is in the data but I don't know
where/what investigate

thanks in advance

-- 
ciao
Luca

www.lucadelu.org
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Luca Delucchi
Hi Jeff,

On Thu, 24 Jun 2021 at 21:37, Jeff McKenna
 wrote:
>
> Luca, I've done more testing and in fact I can get point & line features
> (with label leader lines)  to work with that mapfile.  I can now see
> Thomas' point, that this is a documentation issue (likely when I
> originally documented this I could only get it to work with polygons,
> but now when I test I can get points,lines,polygons to work by adapting
> that same mapfile).
>

Thanks a lot, I tried again changing some parameters but I didn't get
any leader lines.
I'm using mapserver 7.6.2 provided by Debian

> I'll fix that document now.
>
> If you post your mapfile and data I can test your data locally here.
>

here you are an example not working for me, with my output png

> -jeff
>


-- 
ciao
Luca

www.lucadelu.org
<>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Luca Delucchi
On Thu, 24 Jun 2021 at 19:08, Jeff McKenna
 wrote:
>
> Hi Luca,
>

Hi Jeff,

> I had created that page that Thomas pointed to, I see that my test files
> are still available that I used to generate those map images
> (https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give
> that mapfile a try with your local MapServer instance, and let me know
> if I need to update that test package.
>
I tested that data and it work properly, but as Thomas reported it
seems to work only with polygon, with my point data it doesn't work
Should I open a enhancement (or bug) issue? I think it should be
useful to have it at least for points, but also for line

>
> -jeff

Thanks for your help

-- 
ciao
Luca

www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] connect label to features

2021-06-24 Thread Luca Delucchi
Hi all,

I would like to know if it is possible to link a feature with its
label, something like QGIS is doing in Labels -> Callouts.

thanks a lot

-- 
ciao
Luca

www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] LABELITEM in TEMPLATE or dynamic template

2018-04-23 Thread Luca Delucchi
On 20 April 2018 at 17:22, Lime, Steve D (MNIT)  wrote:
> You can’t get at core properties through the template tags. You can get at
> anything you pass in to a request so if you’re dynamically setting the
> labelitem then you could exploit that. I believe you can also get at values
> stored in the metadata block so you could use that. Syntax is
> [layername_meta data key]… It would be interesting to learn a little more
> about your setup to see if there is a more expedient way to do what you’re
> after.
>

Thanks a lot for your support, so I solved my problem using this
syntax in the template

[item name=[metadata_gml_include_items]]

in the metadata section is set

gml_include_items "MYCOLUMN"


>
> --Steve
>


-- 
ciao
Luca

www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] LABELITEM in TEMPLATE or dynamic template

2018-04-16 Thread Luca Delucchi
Il lun 16 apr 2018, 22:09 Lime, Steve D (MNIT)  ha
scritto:

> I don’t get what you mean by template - are you really talking about a
> query template (either via TEMPLATE or a template-driven output format) or
> something else? --Steve
>

A query template, in the template it is required to set [item
name="column_name"] I would like to set [item LABELITEM] or something
similar

Thanks
Luca
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] LABELITEM in TEMPLATE or dynamic template

2018-04-16 Thread Luca Delucchi
Hi all,

I have a WMS service based on a Postgis table, it has several columns
used by several layers in MapServer to classify it.
Is it possibile to use the LABELITEM value in the template? Is there
any other way to change the value in the template without extra
parameter in the WMS request?

Otherwise I see only the way to create several template files, one for
each layer...

-- 
ciao
Luca

www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Fwd: Promotion Video

2017-12-15 Thread Luca Delucchi
Hi Jeff,

On 16 December 2017 at 06:05, Jeff McKenna
 wrote:
> Forwarding a fun video made by a highschool student as part of Google's
> Code-in contest...
>

Sunveer is doing well, could I ask you to change the License, you
could choose a CC license..

-- 
ciao
Luca

www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] shp2img line-command to output mapfile with multiple layers

2016-03-11 Thread Luca Delucchi
Il 11/mar/2016 12:02 PM, "nino formica"  ha scritto:
>
> I want to use "shp2img" command to create a map image (PNG) from a
> mapfile that contains 3 layer.
> So I write on terminal (Ubuntu):
> shp2img -m my_map.map -o my_map.png -l "layer1" "layer2" "layer3"
>
> But I always get a map with only a layer: the first-one on the list
> after "-l" option !
> Why ??
> How do I get a map image with all the overlapping layers ?
>

Did you try without the -l flag?

> Thanks !
> Nino
>

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

Re: [mapserver-users] wps

2015-06-11 Thread Luca Delucchi
On 11 June 2015 at 16:53, Jeff McKenna  wrote:

>
> Take a look into the popular ZOO-Project (http://zoo-project.org).  You can
> chain processes together, through any GDAL/OGR backend, and serve them
> through MapServer OGC standards such as WMS, WFS, WCS, WFS-T (see
> http://zoo-project.org/docs/kernel/mapserver.html).
>
> And introduce yourself to the ZOO tribe (subscribe at
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss)
>

+1

> -jeff
>


-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] error with SQL query

2013-11-12 Thread Luca Delucchi
Hi all,

I'm trying to use a "complex" SQL query on my layer but it return an error.
My definition on the mapfile is

grid_5x5.geom, grid_5x5.gid, count(occurrence.specie) AS count FROM
(occurrence JOIN grid_5x5 ON (st_intersects(occurrence.wkb_geometry,
grid_5x5.geom))) WHERE specie='ursarc' GROUP BY grid_5x5.gid as
subquery USING UNIQUE grid_5x5.gid USING UNIQUE 25832

and it works well on postgis.
The error returned is

msDrawMap(): Image handling error. Failed to draw layer named
'orsobruno'. msPostGISLayerWhichShapes(): Query error. Failed to build
query SQL. msPostGISBuildSQL(): General error message. Failed to build
SQL 'where'.

Someone can help me?

thanks

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [TinyOWS] Unable to open config file

2013-05-13 Thread Luca Delucchi
On 9 May 2013 17:19, Worth Lutz  wrote:
> I have not used TinyOWS but it sounds like a permission problem on the
> config file.
>
> Is it readable by the web user (www-data in ubuntu)
>

Yes it is readable...

> Worth
>

thanks

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [TinyOWS] Unable to open config file

2013-05-09 Thread Luca Delucchi
Sorry for boring you, someone can help me with this problem?

On 3 May 2013 14:49, Luca Delucchi  wrote:
> Hi everybody,
> I'm just starting to play with TinyOWS for WFS-T. I installed TinyOWS
> on a ubuntu server and I'm using mapfile to configure TinyOWS.
> If I run "./tinyows --check" from command line it work well
>
> TinyOWS version:   1.0.0
> administrator@webcrev3:/usr/lib/cgi-bin$ TinyOWS version:   1.0.0
> PostGIS Version:   2.0.1
> PostGIS dsn:   dbname='gis_os' host=10.100.113.5 port=5432
> user='sde' password='sde' sslmode=disable
> Output Encoding:   UTF-8
> Database Encoding: UTF8
> Schema dir:/usr/share/tinyows/schema
> Display bbox:  Yes
> Estimated extent:  No
> Check schema:  Yes
> Check valid geoms: Yes
> Available layers:
>  - public.sitiwgs84 (4326) -> .sitiwgs84 [RW]
>
> but when I try from web browser it doesn't work and return "Unable to
> open config file"
> Do you have any advice to help me?
>
> Thanks
>
> --
> ciao
> Luca
>
> http://gis.cri.fmach.it/delucchi/
> www.lucadelu.org



-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] [TinyOWS] Unable to open config file

2013-05-03 Thread Luca Delucchi
Hi everybody,
I'm just starting to play with TinyOWS for WFS-T. I installed TinyOWS
on a ubuntu server and I'm using mapfile to configure TinyOWS.
If I run "./tinyows --check" from command line it work well

TinyOWS version:   1.0.0
administrator@webcrev3:/usr/lib/cgi-bin$ TinyOWS version:   1.0.0
PostGIS Version:   2.0.1
PostGIS dsn:   dbname='gis_os' host=10.100.113.5 port=5432
user='sde' password='sde' sslmode=disable
Output Encoding:   UTF-8
Database Encoding: UTF8
Schema dir:/usr/share/tinyows/schema
Display bbox:  Yes
Estimated extent:  No
Check schema:  Yes
Check valid geoms: Yes
Available layers:
 - public.sitiwgs84 (4326) -> .sitiwgs84 [RW]

but when I try from web browser it doesn't work and return "Unable to
open config file"
Do you have any advice to help me?

Thanks

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WCS server, getcoverage request fail

2012-10-26 Thread Luca Delucchi
2012/10/26 Rahkonen Jukka :
> Hi,
>

Hi

> First thing is that BBOX seems odd but perhaps it is a typo
> BBOX=2168000,7716750,77,%205447750&
>

ops sorry I didn't see it.
Now it return me an error because the width and height are to big

[Fri Oct 26 10:42:57 2012].537605 msWCSGetCoverage(): WCS server
error. Raster size out of range, width and height of resulting
coverage must be no more than MAXSIZE=2048.

How can I find the maximum bounding box the the right resolution and
the MAXSIZE?
otherwise can I force the MAXSIZE?

> -Jukka Rahkonen-
>

Thanks


-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] WCS server, getcoverage request fail

2012-10-26 Thread Luca Delucchi
Hi everybody,
I'm testing WCS server with MapServer 6.0 compiled from svn in a Debian system.
GetCapabilities and DescribeCoverage works fine; GetCoverage instead
as some problems when I try to use RESX and RESY, I obtain this
"Premature end of script headers: mapserv" i error.log of Apache.
My request is like this

http://localhost/cgi-bin/mapserv?map=/var/www/wcs_test/wcs_test.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=MODIS_LST_2002_08&CRS=EPSG:3035&BBOX=2168000,7716750,77,%205447750&RESX=250&RESY=250&FORMAT=GTiff

Someone can help me?

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] python mapscript error

2011-09-21 Thread Luca Delucchi
Hi everybody, I'm starting to use python mapscript to create web
services, but I have a problem when I try to create a new layer.
I saw this [0] thread, and I try to apply the patch but it didn't
work. I'm running svn version of branches 6 on a Ubuntu OS

lucadelu@giswks001:~/compilati/mapserver6-0/mapserver/mapscript/python$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapscript
>>>
>>> map = mapscript.mapObj( )
>>> map.name = "Orthophoto Merano"
>>> map.setSize(250, 250)
1
>>> map.setExtent(11.134999, 46.617079, 11.212800, 46.692624)
0
>>> map.imagecolor.setRGB(255, 255, 255)
0
>>> map.units = mapscript.MS_DD
>>> layer = mapscript.layerObj()
Traceback (most recent call last):
  File "", line 1, in 
  File "mapscript.py", line 807, in __init__
if args and len(args)!=0:
NameError: global name 'args' is not defined
>>> layer = mapscript.layerObj(map)
Traceback (most recent call last):
  File "", line 1, in 
  File "mapscript.py", line 807, in __init__
if args and len(args)!=0:
NameError: global name 'args' is not defined


[0] 
http://gis.stackexchange.com/questions/8735/using-mapscript-to-create-a-mapfile-from-scratch

-- 
thanks
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] KML data coming from HTTP GET

2011-07-29 Thread Luca Delucchi
2011/7/29 Luca Casagrande :
> Hello everybody,
> I am working to create a WMS service starting from Ushahidi [1] incidents.

You forgot the link ;-)

> With the API of the second one, I can access all incidents with a simple
> HTTP GET request which return a KML file.
> My first idea is to let cron download data every 10 minutes, but I don't
> know if there is a better solution.
>

I don't know Ushahidi but you could use a WPS, for example ZOO can
create a W*S as output (this features should be in the svn version)

> Thank you very much
> Luca
>

-- 
cheers
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] wfs error missing

2010-05-21 Thread Luca Delucchi
2010/5/19 Luca Delucchi :

> In web section I set the metadata wfs_srs like this   "EPSG:900913
> EPSG:4326", but the web section would be for the output...
>

i solve removing EPSG:900913 from wfs_srs and reprojecting the wfs
layer in openlayers


thank's
Luca
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] wfs error missing

2010-05-19 Thread Luca Delucchi
2010/5/19 Rahkonen Jukka :
> Hi,
>
> Everything seems to be OK. Your layer is visible through WMS, getCapabilities 
> works as well as describeFeatureType. Only odd thing is the getCapabilities 
> informs that the featureType is in EPSG:900913, but I do not understand how 
> it is possible:

In web section I set the metadata wfs_srs like this   "EPSG:900913
EPSG:4326", but the web section would be for the output...

>
> -Jukka-
>

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


Re: [mapserver-users] wfs error missing

2010-05-19 Thread Luca Delucchi
2010/5/19 Rahkonen Jukka :
> Hi,
>

hi, thank's for your fast reply

> I believe it is not an error, it is just an empty collection. Perhaps
> you have not done all that is needed to activate the WFS gml output,
> like adding to LAYER definitions DUMP TRUE and "gml_include_items". Or
> if you used some spatial filter it could have been outside the area
> covered by your data.

I already set DUMP TRUE and gml_include_items, and I use none spatial
filter, my layer configuration is this

LAYER
   NAME "ACESAP_field_data"
   TYPE POINT
   STATUS on
   CONNECTIONTYPE POSTGIS
   CONNECTION "dbname= user=* password=* host=localhost"
   DATA "geom from tabella_wfs using unique id using srid=4326"
   DUMP TRUE
   PROJECTION
   "init=epsg:4326"
   END
   CLASS
   STYLE
   SYMBOL 'circle1'
   OUTLINECOLOR 238 201 0
   END
   END
   METADATA
   "wfs_title" "ACESAP_field_data"
   "gml_featureid" "id"
   "wfs_srs"  "EPSG:4326"
   "gml_include_items" "all"
   END
   END

>
> -Jukka Rahkonen-
>

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


[mapserver-users] wfs error missing

2010-05-19 Thread Luca Delucchi
I everebody, this is my first post. I'm an italian GFOSS user, I
developed several service using mapserver before this, but never I had
this error and I cannot found a solution.
I developed a WFS service, the GetCapabilities work well but when I
try the GetFeatures it return an error

http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
http://mapserver.gis.umn.edu/mapserver
http://acesap.fem-environment.eu/mapserv/wfs_acesap?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=ACESAP_field_data&OUTPUTFORMAT=XMLSCHEMA";>
-

missing



someone can help me?

I am attaching the mapfile if necessary, but I checked several times
and showed others Italians and looks good

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