Re: [mapserver-users] Selecting data from multiple OGR layers

2021-02-03 Thread Tamas Szekeres
Iljya,

You might probably try Union_SourceLayerName as the attribute name.

Best regards,

Tamas




Iljya Kalai  ezt írta (időpont: 2021. febr. 3., Sze,
18:54):

> Hi everyone,
>
> I'm trying to select data from multiple OGR layers and style them based on
> the source layer, as well as some attributes that are not common to all
> layers.
>
> I discovered the UNION layer
>  which seems to be the
> answer. According to the documentation
>  the source layer name
> should be in the [Combine_SourceLayerName] attribute. However, I get this
> error when I try to use it:
>
>msOGRLayerInitItemInfo(): OGR error. Invalid Field name:
> Combine_SourceLayerName in layer `LAYER1'
>
>  (I also tried [Union:SourceLayerName] which I found in the mapunion.c
> code
> ,
> but that gives the same error.)
>
> Map file snippet:
>
> LAYER
> NAME "U"
> STATUS DEFAULT
> CONNECTIONTYPE UNION
> CONNECTION "LAYER1,LAYER2"
> CLASS
>NAME "C1"
>EXPRESSION ("[Combine_SourceLayerName]" = "LAYER1")
>...
>
> Any ideas?
>
> Thanks!
> Iljya
> P.S I'm new here!
> ___
> 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] deployed mapping engine comparison stats

2020-06-05 Thread Tamas Szekeres
Very interesting comparison.
I wonder how this statistics would look like if MapServer had a built-in
web administration interface like the other competing applications.

Best regards,

Tamas


Jeff McKenna  ezt írta (időpont: 2020. jún.
5., P, 18:09):

> Something I noticed this morning: MapServer users might be interested in
> recently published statistics of deployed mapping engine types (ArcGIS,
> GeoServer, MapServer/MapCache, QGIS Server, etc.) :
> https://www.geoseer.net/blog/?p=2020-06-04_geospatial_server_software
>
>
> -jeff
>
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> co-founder of FOSS4G
> http://gatewaygeo.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] Highly inefficient MakeValid statement in Mapserver-generated spatial queries

2019-09-07 Thread Tamas Szekeres
I think we can remove MakeValid from the queries entirely.
The problem is that if the table contains invalid geometries, the entire
query will fail.

Best regards,

Tamas


Seth G  ezt írta (időpont: 2019. szept. 7., Szo,
21:35):

> Hi,
>
> Good question. This is a fairly new change as part of
> https://github.com/mapserver/mapserver/issues/5781 from April this year.
> In SQL Profiler I seem to get GEOM.STIntersects for WFS requests and
> GEOM.MakeVaid().STIntersects for WMS.
> MakeValid does appear to stop the index being used. Do you have a link
> which says this definitively?
>
> Seth
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
>
>
> On Sat, Sep 7, 2019, at 12:02 PM, ikes...@yahoo.com wrote:
>
> Hello,
>
>
>
> I noticed that when MapServer issues the query to MS SQL Server, it
> appends a .MakeValid() tag to the geometry field, which makes data access
> highly inefficient as no spatial indexes can be used when the MakeValid()
> is used. Here is the query that is being produced:
>
>
>
> SELECT
>
> convert(nvarchar(max), [label]),
>
> [ogr_geometry],
>
> convert(varchar(36), [ogr_fid])
>
> FROM
>
> section
>
> WHERE
>
> ogr_geometry.*MakeValid()*.STIntersects(geometry::STGeomFromText('POLYGON((-10973271.1167343
> 5605636.0681215,-10963019.0003155 5605636.0681215,-10963019.0003155
> 5614459.76757417,-10973271.1167343 5614459.76757417,-10973271.1167343
> 5605636.0681215))',3857)) = 1
>
>
>
> Here is the data access string from the map file:
>
>
>
> *DATA "ogr_geometry from section USING UNIQUE ogr_fid USING SRID=3857"*
>
>
>
> Earlier I was using a specific HINT for index usage:
>
>
>
> *DATA "ogr_geometry from section WITH (INDEX(section_ogr_geometry_idx))
> USING UNIQUE ogr_fid USING SRID=3857"*
>
>
>
> But since MapServer adds the MakeValid automatically, I am getting the
> following error:
>
>
>
> Msg 8635, Level 16, State 9, Line 1
>
> The query processor could not produce a query plan for a query with a
> spatial index hint.  Reason: Could not find required binary spatial method
> in a condition.  Try removing the index hints or removing SET FORCEPLAN.
>
>
>
> How do I configure mapserver to NOT ADD the MakeValid to every single one
> of its queries ?
>
>
>
> Any response is much appreciated !
>
>
>
> Thanks,
>
> Istvan
>
>
>
>
> ___
> 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

[mapserver-users] Using polygon fills with GAP

2016-09-15 Thread Tamas Szekeres
Hi,

We are trying to implement polygon fills with symbols where the X and Y
offset between the symbols are different. But it seems impossible, since we
can specify a single GAP setting (the same for both directions). I might
also think to specify edge to edge fill by not specifying GAP, but that
would invole the need of specifying the symbol (container) size in both
directions, but that is not possible either.

Do we have further options to achieve the desired result? (ie. to arrange
the symbol using different offsets vertically and horizontally).

Thanks,

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

Re: [mapserver-users] Mapfile editor with GUI

2016-06-15 Thread Tamas Szekeres
As soon as Windows OS is concerned, you might also take a look at MapServer
MapManager.

http://www.gisinternals.com/mapmanager.html

Best regards,

Tamas


2016-06-15 11:58 GMT+02:00 nino formica :

> Hi everyone,
> I'm looking for a mapfile editor (MapServer 7 ver.) with GUI.
> Any suggestions ?
>
> regards !
> Nino
>
> ___
> 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] Mapserver - connection to MSSQL

2016-06-07 Thread Tamas Szekeres
Hi Robert,

This is probably due to an incorrect geometry format in the database. I'd
require some test data to be able to investigate this further.

Best regards,

Tamas



2016-06-07 1:05 GMT+02:00 Robert Sanson <robert.san...@asurequality.com>:

> Hi Tamas
>
>
>
> I populated the geometry_columns and spatial_ref_sys Metadata tables and
> am now able to connect Mapserver to use my SQL-Server geometry column!
>
>
>
> However, I have come across another issue. I am getting some correctly
> drawn tiles, and some pink tiles. Investigating the pink tiles I get the
> following:
>
>
>
> 
>
>  http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;>
>
> 
>
> 
>
> msDrawMap(): Image handling error. Failed to draw layer named
> par_direct.
>
> msOGRFileNextShape(): OGR error. GetNextRawFeature(): Not enough data to
> deserialize
>
> 
>
> 
>
>
>
> Any clues?
>
>
>
> Many thanks,
>
>
> Robert
>
>
>
> *From:* Tamas Szekeres [mailto:szeker...@gmail.com]
> *Sent:* Wednesday, 1 June 2016 9:23 a.m.
> *To:* Robert Sanson <robert.san...@asurequality.com>
> *Cc:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Mapserver - connection to MSSQL
>
>
>
> Probably the referred table is not enumerated in the geometry_columns
> metadata table of the database.
>
>
>
> Best regards,
>
>
>
> Tamas
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapserver - connection to MSSQL

2016-05-31 Thread Tamas Szekeres
Probably the referred table is not enumerated in the geometry_columns
metadata table of the database.

Best regards,

Tamas


2016-05-31 23:04 GMT+02:00 Robert Sanson <robert.san...@asurequality.com>:

> Hi Tamas
>
>
>
> Thanks for that. I tried that but now the response is:
>
>
>
> 
>
>  http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;>
>
> 
>
> 
>
> msDrawMap(): Image handling error. Failed to draw layer named
> par_direct.
>
> msOGRFileNextShape(): OGR error. Error initializing the metadata tables :
>
> 
>
> 
>
>
>
> Any way I can get around this issue?
>
>
>
> Robert
>
>
>
> *From:* Tamas Szekeres [mailto:szeker...@gmail.com]
> *Sent:* Wednesday, 1 June 2016 6:36 a.m.
> *To:* Robert Sanson <robert.san...@asurequality.com>
> *Cc:* mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Mapserver - connection to MSSQL
>
>
>
> Robert,
>
>
>
> It looks like the port number portion in the connection string causes the
> issue, specifically the comma is not being interpreted correctly by the
> parser. I guess this is similar to an earlier issue reported to gdal:
> https://trac.osgeo.org/gdal/ticket/4885
>
>
>
> That time quoting the connection string provided a workaround as far as I
> remember.
>
>
>
> Best regards,
>
>
>
> Tamas
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapserver - connection to MSSQL

2016-05-31 Thread Tamas Szekeres
Robert,

It looks like the port number portion in the connection string causes the
issue, specifically the comma is not being interpreted correctly by the
parser. I guess this is similar to an earlier issue reported to gdal:
https://trac.osgeo.org/gdal/ticket/4885

That time quoting the connection string provided a workaround as far as I
remember.

Best regards,

Tamas





2016-05-12 22:44 GMT+02:00 Robert Sanson :

> Hi
>
>
>
> I manually retyped the connection string into my Mapfile and still get the
> same error. The exact same connection string works fine in ogrinfo, the
> only error message is something about OGC Metadata table missing, however,
> it proceeds to give me the correct information.
>
>
>
> Thanks,
>
>
> Robert
>
> *From:* Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi]
> *Sent:* Wednesday, 11 May 2016 7:28 p.m.
> *To:* geograph...@gmail.com; Robert Sanson ;
> mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Mapserver - connection to MSSQL
>
> Hi,
>
> The connection string in the mapfile does look perfect but something that
> happens for me is that if I copy and paste text the copy may  contain
> invisible characters which make troubles. I would rewrite the CONNECTION
> again by hand from keyboard and try if it helps.
>
> -Jukka Rahkonen-
>
> Seth G wrote:
>
> Hi,
>
> The error message indicates there is a problem with your connection string:
>
> 'MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com' does not
> contain the 'database' portion
>
> If the database part is not missing, maybe there is a missing semi-colon,
> or special character ending the database connection string?
>
> Regards,
>
> Seth
>
> On 10/05/2016 23:54, Robert Sanson wrote:
>
> Hi
>
>
>
> I am trying to create a Mapserver (v 6.4.1 on Ubuntu) layer based on a
> MSSQL table with native geometry.
>
>
>
> I have tested the connection via ogrinfo (based on gdal v 2.0.2) and it
> works:
>
>
>
> ogrinfo -sql "select * from par_table where par_no = 6777887"
> "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)"
>
>
>
> This is my layer section:
>
>
>
> LAYER
>
>   NAME par_direct
>
>   GROUP "CRS"
>
>   STATUS ON
>
>   CONNECTIONTYPE ogr
>
>   CONNECTION
> "MSSQL:driver=FreeTDS;server=myserver,1433;uid=xx;pwd=xxx;database=mydb;trusted_connection=no;tables=par_table(geom)"
>
>   FILTER "WHERE date_dropped is null"
>
>   TYPE POLYGON
>
>   PROCESSING 'CLOSE_CONNECTION=DEFER'
>
>   MAXSCALE 275000
>
>   CLASS
>
> STYLE
>
>   WIDTH 0.25
>
>   OUTLINECOLOR 0 0 255
>
> END
>
>   END
>
>   METADATA
>
> "ows_title" "par_direct"
>
> "wms_group_title" "CRS"
>
> "wms_exceptions_format" "application/vnd.ogc.se_xml"
>
> "wms_abstract""This is the LINZ parcel layer in NZTM"
>
> "wms_keywordlist""LINZ,CRS"
>
> "wms_extent" "1114412.940 4793178.168 2089186.204 6190213.601"
>
>   END
>
> END
>
>
>
> When I try a WMS getmap call I get this error message:
>
>
>
> 
>
>  "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd;
> >
>
> 
>
> 
>
> msDrawMap(): Image handling error. Failed to draw layer named
> par_direct.
>
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
> `par_direct.
>
> MSSQL:driver=FreeTDS;server=db-agribase-p.asurequality.com does
> not contain the database portion
>
> 
>
> 
>
>
>
>
>
> Many thanks,
>
>
>
> Robert L. Sanson
>
>
>
>
>
> ___
> 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] windows.h file compiling

2016-02-05 Thread Tamas Szekeres
yes

2016-02-05 13:01 GMT+01:00 <pedrocostaa...@sapo.pt>:

> Thanks, but WITH_MSSQL2008 plugin is only for windows?
>
>
> Citando Tamas Szekeres <szeker...@gmail.com>:
>
> You should not define WITH_MSSQL2008 in your cmake setup.
>
> Best regards,
>
> Tamas
>
>
>
> 2016-02-05 12:46 GMT+01:00 <pedrocostaa...@sapo.pt>:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Hi guys, I'm trying to compile mapserver on ubuntu server 14.04 but i am
>> receiving this error:  [ 90%] Building C object
>> CMakeFiles/msplugin_mssql2008.dir/mapmssql2008.c.o
>> /mapdata/mapserver-7.0.0/mapmssql2008.c:44:21: fatal error: windows.h: No
>> such file or directory  #include   ^
>> compilation terminated. I do not have 'windows.h' header file. Can anybody
>> help me with what i have to do to fix that? Thanks  *
>>
>>
>>
>>
>> *___ mapserver-users mailing
>> list mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> <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] windows.h file compiling

2016-02-05 Thread Tamas Szekeres
You should not define WITH_MSSQL2008 in your cmake setup.

Best regards,

Tamas



2016-02-05 12:46 GMT+01:00 :

> Hi guys,
>
> I'm trying to compile mapserver on ubuntu server 14.04 but i am receiving
> this error:
>
> [ 90%] Building C object CMakeFiles/msplugin_mssql2008.dir/mapmssql2008.c.o
> /mapdata/mapserver-7.0.0/mapmssql2008.c:44:21: fatal error: windows.h: No
> such file or directory
>  #include 
>  ^
> compilation terminated.
>
>
>
> I do not have 'windows.h' header file. Can anybody help me with what i
> have to do to fix that?
>
> Thanks
>
>
>
>
> ___
> 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] Remove CLUSTER definition

2016-02-02 Thread Tamas Szekeres
Looks like you need to set the following default parameters to prevent from
writing to the mapfile:

  cluster->maxdistance == 10 &&
  cluster->buffer == 0.0 &&
  cluster->region == NULL &&
  cluster->group.string == NULL &&
  cluster->filter.string == NULL

Best regards,

Tamas



2016-02-02 13:48 GMT+01:00 Moretti Edmar :

> How do I remove the CLUSTER definition of a mapfile using PHP-MapScript?
> I try to use the code below, but without success
>
> $cluster = $layer->cluster;
> $cluster->updateFromString("GROUP END");
>
> --
> Para tirar dúvidas sobre o i3Geo utilize a lista:
> https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo
>
> Edmar Moretti
> http://www.edmarmoretti.com.br
> Skype: edmar.moretti
> gTalk: edmar.moretti
>
> ___
> 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] - Mapserver 7

2015-05-05 Thread Tamas Szekeres
I'll try to fix the mssql issue later in this week.

I'd also like to get a couple of enhancements related to the
legend/scalebar rendering into MapServer7, like the ability to render the
legend and scalebar as SVG symbols.

Best regards,

Tamas







2015-05-04 17:24 GMT+02:00 Lime, Steve D (MNIT) steve.l...@state.mn.us:

 There's blocker ticket out there related to WMS time and MSSQL server. I
 hope to get at it this week. I think when that's handled we can get back on
 track with a beta2 and then a candidate release.

 
 From: Ian Walberg [ian.walb...@airborne.aero]
 Sent: Monday, May 04, 2015 10:02 AM
 To: Lime, Steve D (MNIT); scott...@free.fr;
 mapserver-users@lists.osgeo.org
 Subject: RE: [mapserver-users] - Mapserver 7

 Is there a new planned release date for version 7?

 Any areas that you need help?

 Thanks, Ian

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D (MNIT)
 Sent: Tuesday, March 24, 2015 9:55 AM
 To: scott...@free.fr; mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] - Mapserver 7

 Another beta should be along soon (within a week?). Feedback/testing has
 been pretty slow to come thus far... The more of that we get the faster the
 release process will go.

 Steve

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of scott...@free.fr
 Sent: Tuesday, March 24, 2015 2:08 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] - Mapserver 7


 Is there a date to next beta or release ?
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Re: [mapserver-users] CLUSTER_GET_ALL_SHAPES gives bad query output

2014-10-04 Thread Tamas Szekeres
I'm not sure which MapServer version we are talking about. The recent
versions should provide all attributes.
When using CLUSTER_GET_ALL_SHAPES you can use the Cluster_BaseFID attribute
to identify the shapes which belong to the same cluster and Cluster_BaseFID
is in fact the feature ID of the main shape of the cluster.

Tamas

2014-10-04 16:01 GMT+02:00 yeryry yer...@gmail.com:

 It seems that the problem described in

 http://osgeo-org.1560.x6.nabble.com/CLUSTER-and-GetFeatureInfo-td4227414.html
 is still present. When retrieving the details for a cluster, the
 cluster-related attributes are set only for the last member of the
 cluster, and normal attributes for that member aren't sent. The normal
 attributes for all members should be sent, and I would think the
 cluster-related ones should be set for each member, not just the last.
 ___
 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] CLUSTER_GET_ALL_SHAPES gives bad query output

2014-10-04 Thread Tamas Szekeres
That might be true. The aggregated attributes are set only for the main
shape of the cluster. Feel free to submit a ticket for the issue, I hope
that this can be implemented with no performance impact.

Colons have been replaced with underscores which are more xml friendly, but
we might also require to modify the aggregate values (Min:, Max:, Sum:,
Count:) this way.

Best regards,

Tamas


2014-10-04 22:03 GMT+02:00 yeryry yer...@gmail.com:

 Ah, thanks. I had been using 6.4.1, with WMS GetFeatureInfo.

 https://github.com/mapserver/mapserver/commit/898ab8b944a6340b5a8742fe12d3aee6ca236e88
 fixed my main problem. Using a newer version, the attributes for the
 last item are again present.
 The FeatureCount (Now Cluster_FeatureCount rather than
 Cluster:FeatureCount it seems?) is still only present for the last
 item in the cluster though. The new Cluster_BaseFID is present for
 each item.
 ___
 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] MapServer for Windows

2014-08-06 Thread Tamas Szekeres
Ben,

The packages on http://www.gisinternals.com/sdk/ are self contained the
mapserver-core.msi would be enough for the basic mapserver functionality.
You can also install the gdal plugin packages (oracle, filegdb, ecw) into
the same directory to add further driver support to gdal.

Best regards,

Tamas




2014-08-06 10:56 GMT+02:00 Ben Crane curtly.b...@gmail.com:

 Hey guys,

 Under the downloads page on http://www.gisinternals.com/sdk/ do I need to
 do incremental installs (ie: install one thing, then another, etc)? Or is
 it all self-contained? The reason I ask is that I go to 
 *release-1600-gdal-1-11-mapserver-6-4
 *(which is stable and win32) and under that I have a few options - do I
 need Mapserver core first then the others or can I go with release
 1600-gdal zip?

 I'm guessing that I do a standard install (latest) and then whenever
 updates come along (as mentioned by others) I replace the various libraries
 with the updates so that made me think there may be a split in what I
 should be downloading first...

 Cheers,
 Ben


 On Tue, Aug 5, 2014 at 4:42 PM, Ben Crane curtly.b...@gmail.com wrote:

 Hey guys,

 Many thanks for this - I'll give it a go - all the suggestions have been
 different to what I've seen before so that's great - makes me feel like I'm
 on the right path now.

 Much appreciated

 Ben


 On Tue, Aug 5, 2014 at 12:31 PM, Rahkonen Jukka (Tike) 
 jukka.rahko...@mmmtike.fi wrote:

  Hi,



 The ”relevant binaries” means copying into the cgi-bin directory of MS4W
 all the .dll files from \release-1600-gdal-mapserver.zip\bin\ as well as
 mapserv.exe from \release-1600-gdal-mapserver.zip\bin\ms\apps\.  I believe
 that 32-bit binaries must be used.



 I made a short test with my old MS4W installation and Apache did start
 and all the old mapfiles I tried were working after these substitutions.
 However, from previous experience I know that mixed binaries can make
 troubles. I also believe that Mapserver is losing users because we lack an
 easy way to install current version on Windows.



 -Jukka Rahkonen-







 *Lähettäjä:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *Puolesta *Tamas Szekeres
 *Lähetetty:* 5. elokuuta 2014 13:47
 *Vastaanottaja:* Ben Crane
 *Kopio:* MapserverList OSGEO
 *Aihe:* Re: [mapserver-users] MapServer for Windows



 If you still using ms4w+Apache, try replacing the relevant binaries from
 release-1600 builds from http://www.gisinternals.com/sdk/ which should
 be a compatible build well enough, though PHP is not being compiled at the
 moment. You can also download an IIS based msi installer with CGI
 registration capabilities (not fastCGI) from
 http://www.gisinternals.com/sdk/.



 Best regards,



 Tamas







 2014-08-05 11:36 GMT+02:00 Ben Crane curtly.b...@gmail.com:

 Hey all,

 Mapserver for Windows :)

 I've seen a bit about this online but sometimes more information can be
 more confusing. I've used MS4W before and loved it but I have noticed the
 versions are getting far removed from the latest build and that concerns
 me. I would like to install MapServer (including the admin webpage (which
 made life a lot easier)) but the latest version - apparently there has been
 a fix to the PolygonSymbolizer stroke-opacity not working within Mapserver
 that I'd like to try out. I will be primarily using it to build a WMS
 service.

 Can anyone suggest from personal experience which his the best route to
 go to get the latest Mapserver (including upgrades/new builds, etc) for
 Windows?



 Cheers,

 Ben


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



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




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

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

Re: [mapserver-users] MapServer for Windows

2014-08-05 Thread Tamas Szekeres
If you still using ms4w+Apache, try replacing the relevant binaries from
release-1600 builds from http://www.gisinternals.com/sdk/ which should be a
compatible build well enough, though PHP is not being compiled at the
moment. You can also download an IIS based msi installer with CGI
registration capabilities (not fastCGI) from
http://www.gisinternals.com/sdk/.

Best regards,

Tamas




2014-08-05 11:36 GMT+02:00 Ben Crane curtly.b...@gmail.com:

 Hey all,

 Mapserver for Windows :)

 I've seen a bit about this online but sometimes more information can be
 more confusing. I've used MS4W before and loved it but I have noticed the
 versions are getting far removed from the latest build and that concerns
 me. I would like to install MapServer (including the admin webpage (which
 made life a lot easier)) but the latest version - apparently there has been
 a fix to the PolygonSymbolizer stroke-opacity not working within Mapserver
 that I'd like to try out. I will be primarily using it to build a WMS
 service.

 Can anyone suggest from personal experience which his the best route to go
 to get the latest Mapserver (including upgrades/new builds, etc) for
 Windows?

 Cheers,
 Ben

 ___
 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] MSSQL connection OGR with mapscript

2014-05-23 Thread Tamas Szekeres
Hi,

If you are connecting to a named instance you should use backslash in the
server name of the connection string.

Best regards,

Tamas



2014-05-23 11:56 GMT+02:00 blackcat18 m18black...@hotmail.fr:

 Hi every one,

 I am trying to get data from database using mapscript. whithout
 layer1.status, my output bitmap is blank with a size of 2000*2000.

 When I add layer1.status = 1, I get that error :

 /An exception of type 'System.ApplicationException' occurred in
 mapscript_csharp.dll but was not handled in user code
 Additional information: msDrawMap(): Image handling error. Failed to draw
 layer named 'GRADIN3'.;msOGRFileOpen(): OGR error. Open failed for OGR
 connection in layer `GRADIN3'.
 Unable to initialize connection to the server for

 MSSQL:server=192.168.***.***//SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom),
 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
 access denied./

 I am connected to to my database with SQL Server Management so the
 connection is ok. May be the connection string is not written correctly.
 How
 can I correct it ?


 this is my code:

 /  OSGeo.MapServer.mapObj map = new
 OSGeo.MapServer.mapObj(C://Users//Sweet live//SkyDrive//Projet
 OPENFIELD//MapServer//Programme//WebForm_Map//mapTest.map);
 map.setExtent(18118500, 3877472, 18138000, 3892012);
 map.setSize(2000, 2000);
 // Ge the first layer and set a classification attribute
 OSGeo.MapServer.layerObj layer1 = new
 OSGeo.MapServer.layerObj(map);
 layer1.name = GRADIN3;
 layer1.type = OSGeo.MapServer.MS_LAYER_TYPE.MS_LAYER_POLYGON;
 //layer1.status = 1;
 //layer1.debug = 1;
 layer1.connectiontype =
 OSGeo.MapServer.MS_CONNECTION_TYPE.MS_OGR;
 layer1.connection =

 MSSQL:server=192.168.***.***//SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom);
 //layer1.data = select geom from SFP_Siege_CAD;
 OSGeo.MapServer.classObj classSiege = new
 OSGeo.MapServer.classObj(layer1);
 classSiege.name =geom;
 OSGeo.MapServer.styleObj styleSiege = new
 OSGeo.MapServer.styleObj(classSiege);
 styleSiege.color.setRGB(125,125,125);
 classSiege.insertStyle(styleSiege,0);
// map.save(output.map);
  OSGeo.MapServer.imageObj mapimage = map.draw();
 mapimage.save(map.png, map);/

 and the output .map:

 /MAP
   EXTENT 18118500 3874992 18138000 3894492
   FONTSET fonts\fonts.list
   IMAGETYPE png
   NAME MS
   SIZE 2000 2000
   STATUS ON
   UNITS METERS

   OUTPUTFORMAT
 NAME png
 MIMETYPE image/png
 DRIVER AGG/PNG
 EXTENSION png
 IMAGEMODE RGB
 TRANSPARENT FALSE
   END # OUTPUTFORMAT

   LEGEND
 KEYSIZE 20 10
 KEYSPACING 5 5
 LABEL
   SIZE MEDIUM
   OFFSET 0 0
   SHADOWSIZE 1 1
   TYPE BITMAP
 END # LABEL
 STATUS OFF
   END # LEGEND

   QUERYMAP
 SIZE -1 -1
 STATUS OFF
 STYLE HILITE
   END # QUERYMAP

   SCALEBAR
 IMAGECOLOR 255 255 255
 INTERVALS 4
 LABEL
   SIZE MEDIUM
   OFFSET 0 0
   SHADOWSIZE 1 1
   TYPE BITMAP
 END # LABEL
 SIZE 200 3
 STATUS OFF
 UNITS MILES
   END # SCALEBAR

   WEB
   END # WEB

   LAYER
 CONNECTION

 MSSQL:server=192.168.***.***\SQLSERVER2008;database=OPF_GEO;uid=***;pwd=***;tables=SFP_Siege_CAD(geom)
 CONNECTIONTYPE OGR
 DEBUG ON
 NAME GRADIN3
 STATUS ON
 TILEITEM location
 TYPE POLYGON
 UNITS METERS
 CLASS
   NAME geom
   STYLE
 ANGLE 0
 COLOR 125 125 125
 OFFSET 0 0
   END # STYLE
   STYLE
 ANGLE 0
 COLOR 125 125 125
 OFFSET 0 0
   END # STYLE
 END # CLASS
   END # LAYER

 END # MAP/




 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/MSSQL-connection-OGR-with-mapscript-tp5142084.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Re: [mapserver-users] Migrating from MS4W to GISInternals

2014-04-13 Thread Tamas Szekeres
James,

I can fix the installer including the missing dll-s and adding php
mapscript. But I'm not sure the IIS related modules can be controlled by
the installer. I'll investigate the possible options however.

Best regards,

Tamas



2014-04-12 5:05 GMT+02:00 James_in_Utah james.ev...@hill.af.mil:

 In addition to the steps in the previous post, I also had to install PHP,
 and
 the URL Rewrite Module from Microsoft to get the Mapserver back up to my
 previous capabilities.  Maybe these could be added to the install?



 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/Migrating-from-MS4W-to-GISInternals-tp5129224p5134687.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Re: [mapserver-users] How to hide the ?map=servemap.map from URL under IIS

2014-03-28 Thread Tamas Szekeres
James,

You may probably look into something like this:

http://stackoverflow.com/questions/3071936/getting-iis7-to-rewite-but-still-pass-querystring-parameters

Best regards,

Tamas





2014-03-28 7:55 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil:

 Hi,
 Can anyone point out the right way to alias my mapserver URL under IIS 7?
  I'm not seeing it.
 Thanks,
 James
 ___
 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] Migrating from MS4W to GISInternals

2014-03-17 Thread Tamas Szekeres
szip.dll is also required to copy into the mapserver directory.

Best regards,

Tamas



2014-03-17 5:43 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil:

  Hi Tamas,
 Still no luck getting it working.  hdf5.dll, hdf5_hl.dll, and hdfdll.dll
 were not in the mapsrver directtory.   I copied them over.  Still no luck
 displaying the raster data.  There several other dlls in the bin directory
 of the zip that are not in the mapserver directory.  THey include:
 freexl.dll
 ftgl.dll
 libecwj2.dll
 libtiff.dll
 lti_dsdk_9.0.dll
 lti_lidar_dsdk_1.1.dll
 mfhdfdll.dll
 msplugin_mssql2008.dll
 msplugin_oracle.dll
 msvcp100.dll
 msvcr100.dll
 NCSEcw.dll
 szip.dll
 tbb.dll
 xdrdll.dll

  Should any of these also be copied over to the mapserver directory?
 Thanks,
 James

  --
 *From:* Tamas Szekeres [szeker...@gmail.com]
 *Sent:* Sunday, March 16, 2014 6:52 AM

 *To:* EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Migrating from MS4W to GISInternals

   I suspect hdf5.dll and hdf5_hl.dll is still missing on your target
 directory. Copy those files from the .zip package mentioned before.

  Tamas




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

Re: [mapserver-users] Migrating from MS4W to GISInternals

2014-03-16 Thread Tamas Szekeres
You should probably set CONFIG PROJ_LIB to a valid directory (in the map
file) containing the projection support files.

Tamas


2014-03-16 0:30 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil:

  Good deal.  I had to enable cgi extensions under IIS.  Anyway, now I'm
 having trouble with my map file.  I get this error:

  *msProcessProjection(): Projection library error. proj error Permission
 denied for init=epsg:4326*

  Here's my map file.  I'm just trying to get Natural Earth working to
 begin with.  Why wouldn't this version recognize 4326?  If I take out the
 init statement, I get an error saying I have to have a projection at the
 top level.
 Thanks,
 James



  MAP
NAME RADESWMS
EXTENT -180 -90 180 90
SIZE 512 512
UNITS DD
IMAGECOLOR 0 0 0
#CONFIG PROJ_LIB /ms4w/proj/nad/


WEB
   #IMAGEPATH /ms4w/tmp/ms_tmp/
   #TEMPLATE /ms4w/Apache/htdocs/dummy_template.html
   METADATA
  wms_title RADES_WMS
  wms_name 84RADES_WMS
  #wms_onlineresource 
 http://localhost/cgi-bin/radeswms.exe?SERVICE=WMS;
  wms_srs EPSG:4326
  wms_extent -180 -90 180 90
  Wms_enable_request *
   END
END


 PROJECTION
   init=epsg:4326
END

 LAYER
   NAME NaturalEarth
   METADATA
  wms_title NaturalEarth
  wms_name NaturalEarth
  wms_extent -180 -90 180 90
  wms_srs ESPG:4326
  wms_style Default
   END
   STATUS ON
   TYPE RASTER
   TILEINDEX d:\\MapData\\NaturalEarthCrossBlend\\NaturalEarth
   TILEITEM LOCATION
   #PROJECTION
   #   init=epsg:4326
   #END
End



  END



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

Re: [mapserver-users] Migrating from MS4W to GISInternals

2014-03-16 Thread Tamas Szekeres
I suspect hdf5.dll and hdf5_hl.dll is still missing on your target
directory. Copy those files from the .zip package mentioned before.

Tamas


2014-03-16 12:59 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil:

  Hi Tamas,
 I changed the PROJ_LIB to the correct directory, and that fixed that
 problem.  Now I'm having trouble getting some of the gdal dlls to run.
  I've tried several raster sets, including Natural Earth, and Blue Marble,
 and I get the errors below.  These errors also appear at the top of the
 GetCapabilities document.  I was able to get a vector set (Natural Earth
 State Boundaries) to return a proper image so at least that's some
 progress.  Any suggestions on getting this working would be appreciated.
 Thanks,
 James

  ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_BAG.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_GMT.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_GMT.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_HDF5.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_HDF5.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_HDF5Image.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_HDF5Image.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_netCDF.dll
 126: The specified module could not be found.
 ERROR 1: Can't load requested DLL: C:\Program 
 Files\MapServer\gdalplugins\gdal_netCDF.dll
 126: The specified module could not be found.




  --
 *From:* Tamas Szekeres [szeker...@gmail.com]
 *Sent:* Sunday, March 16, 2014 2:28 AM

 *To:* EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Migrating from MS4W to GISInternals

   You should probably set CONFIG PROJ_LIB to a valid directory (in the
 map file) containing the projection support files.

  Tamas


 2014-03-16 0:30 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
 james.evan...@us.af.mil:

  Good deal.  I had to enable cgi extensions under IIS.  Anyway, now I'm
 having trouble with my map file.  I get this error:

  *msProcessProjection(): Projection library error. proj error
 Permission denied for init=epsg:4326*

  Here's my map file.  I'm just trying to get Natural Earth working to
 begin with.  Why wouldn't this version recognize 4326?  If I take out the
 init statement, I get an error saying I have to have a projection at the
 top level.
 Thanks,
 James



  MAP
NAME RADESWMS
EXTENT -180 -90 180 90
SIZE 512 512
UNITS DD
IMAGECOLOR 0 0 0
#CONFIG PROJ_LIB /ms4w/proj/nad/


WEB
   #IMAGEPATH /ms4w/tmp/ms_tmp/
   #TEMPLATE /ms4w/Apache/htdocs/dummy_template.html
   METADATA
  wms_title RADES_WMS
  wms_name 84RADES_WMS
  #wms_onlineresource 
 http://localhost/cgi-bin/radeswms.exe?SERVICE=WMS;
  wms_srs EPSG:4326
  wms_extent -180 -90 180 90
  Wms_enable_request *
   END
END


 PROJECTION
   init=epsg:4326
END

 LAYER
   NAME NaturalEarth
   METADATA
  wms_title NaturalEarth
  wms_name NaturalEarth
  wms_extent -180 -90 180 90
  wms_srs ESPG:4326
  wms_style Default
   END
   STATUS ON
   TYPE RASTER
   TILEINDEX d:\\MapData\\NaturalEarthCrossBlend\\NaturalEarth
   TILEITEM LOCATION
   #PROJECTION
   #   init=epsg:4326
   #END
End



  END




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

Re: [mapserver-users] Migrating from MS4W to GISInternals

2014-03-15 Thread Tamas Szekeres
James,

Do you have a specific error code or message?

Tamas




2014-03-15 17:40 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil:

   Hi,

 I've been trying to get the .msi installation package from GISInternals to
 install on my Win7-64Bit machine at work.  IIS 7 is installed, and the
 machine is on a domain.  I’m an admin on the local machine, but not on the
 domain.  The package works just fine on my Win7-32bit machine at home.  I'm
 not an expert on IIS, so I'm really not sure what the problem is.  It's
 probably some sort of permissions problem.  I've given my login, and
 IIS_USRS full control over the default website.  The install fails at a
 point where I see a message saying Starting IIS Metabase Transaction.
 Any suggestions on where to look would be appreciated.

 Thanks,
 James

 ___
 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] Migrating from MS4W to GISInternals

2014-03-15 Thread Tamas Szekeres
Reading through several discussions about this problem, it looks like you'd
require to install the IIS6 management compatibility option in IIS7. See
the following document for the details:

http://docs.liebsoft.com/Account-Reset-Console-Installation-Guide/4469.htm

May be a more recent wix package can fix this installation problem more
conveniently.

Best regards,

Tamas




2014-03-15 18:28 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil:

  Hi Tomas,
 The error says Cannot Connect to IIS with a code of -2147221164.
 Thanks,
 James

  --
 *From:* Tamas Szekeres [szeker...@gmail.com]
 *Sent:* Saturday, March 15, 2014 11:17 AM
 *To:* EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Migrating from MS4W to GISInternals

   James,

  Do you have a specific error code or message?

  Tamas




 2014-03-15 17:40 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
 james.evan...@us.af.mil:

   Hi,

 I've been trying to get the .msi installation package from GISInternals
 to install on my Win7-64Bit machine at work.  IIS 7 is installed, and the
 machine is on a domain.  I’m an admin on the local machine, but not on the
 domain.  The package works just fine on my Win7-32bit machine at home.  I'm
 not an expert on IIS, so I'm really not sure what the problem is.  It's
 probably some sort of permissions problem.  I've given my login, and
 IIS_USRS full control over the default website.  The install fails at a
 point where I see a message saying Starting IIS Metabase Transaction.
 Any suggestions on where to look would be appreciated.

 Thanks,
 James

 ___
 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] Migrating from MS4W to GISInternals

2014-03-15 Thread Tamas Szekeres
Mapserver is installed on the default website under the mapserver node (see
the IIS configuration tool for the details). The corresponding URL should
be:

http://localhost/mapserver/mapserv.exe?mode=map;...

Best regards,

Tamas





2014-03-15 19:44 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil:

  It will be tomorrow before I can check to see if that fixes the problem.
  I'll let you know.

  At home, the installation did run on my Win7-32bit Windows machine.
  mapserv -v returns the version info.  Im still having trouble figuring
 out what the correct URL is for hitting the mapserver.  Nothing I've tried
 seems to work.  Any suggestions on that?
 Thanks,
 James

  --
 *From:* mapserver-users-boun...@lists.osgeo.org [
 mapserver-users-boun...@lists.osgeo.org] on behalf of Tamas Szekeres [
 szeker...@gmail.com]
 *Sent:* Saturday, March 15, 2014 11:48 AM

 *To:* EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Migrating from MS4W to GISInternals

   Reading through several discussions about this problem, it looks like
 you'd require to install the IIS6 management compatibility option in IIS7.
 See the following document for the details:


 http://docs.liebsoft.com/Account-Reset-Console-Installation-Guide/4469.htm

  May be a more recent wix package can fix this installation problem more
 conveniently.

  Best regards,

  Tamas




 2014-03-15 18:28 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
 james.evan...@us.af.mil:

  Hi Tomas,
 The error says Cannot Connect to IIS with a code of -2147221164.
 Thanks,
 James

  --
 *From:* Tamas Szekeres [szeker...@gmail.com]
 *Sent:* Saturday, March 15, 2014 11:17 AM
 *To:* EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] Migrating from MS4W to GISInternals

James,

  Do you have a specific error code or message?

  Tamas




 2014-03-15 17:40 GMT+01:00 EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
 james.evan...@us.af.mil:

   Hi,

 I've been trying to get the .msi installation package from GISInternals
 to install on my Win7-64Bit machine at work.  IIS 7 is installed, and the
 machine is on a domain.  I’m an admin on the local machine, but not on the
 domain.  The package works just fine on my Win7-32bit machine at home.  I'm
 not an expert on IIS, so I'm really not sure what the problem is.  It's
 probably some sort of permissions problem.  I've given my login, and
 IIS_USRS full control over the default website.  The install fails at a
 point where I see a message saying Starting IIS Metabase Transaction.
 Any suggestions on where to look would be appreciated.

 Thanks,
 James

 ___
 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] Announcing MapServer MapManager 1.0

2014-02-18 Thread Tamas Szekeres
*Digital Mapping Solutions http://www.mapsolutions.com.au/ along with
Tamas Szekeres is pleased to announce the open source release of MapServer
MapManager. *



*MapServer MapManager http://www.gisinternals.com/MapManager/ is an easy
to use Windows desktop GUI application (based on the MapScript C# API and
GDAL C# API) that allows you to easily create and configure great looking
MapServer map files. The application provides a set of dialogues for
setting the various properties in the map configuration and renders the map
directly on the screen allowing panning and zooming of the displayed area
by using the mouse. The MapManager user interface provides common
operations for selecting the features and inspecting the attributes for
setting up labelling and changing the style and symbology.  The created map
configuration can then be saved into a map file which can be used by
various MapServer CGI/MapScript applications. Mapserver MapManager also
allows users to save the map images in various output formats supported by
MapServer.*



*MapServer MapManager is provided with GPLv3
http://www.gnu.org/licenses/gpl-3.0.html license.*



*The build SDK
http://www.gisinternals.com/sdk/downloads/release-1600-dev.zip
from gisinternals http://www.gisinternals.com/sdk/ can be used to compile
MapManager. For more information about building MapManager please refer to
the Readme https://github.com/DMS-Aus/MapManager/blob/master/README.md
file.*



*Windows installers are provided in the following download locations.
Certain GDAL drivers are provided as separate installers due to their
custom licensing terms. When installing the GDAL driver plugins you should
select the MapManager install location as the target directory.*



*Installers based on the current MapServer release (6.4.1)*



*MapServer MapManager
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-1-mapserver-6-4-1/MapManager.msi
*

*GDAL ECW driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-1-mapserver-6-4-1/gdal-110-1600-ecw.msi
*

*GDAL FileGDB driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-1-mapserver-6-4-1/gdal-110-1600-filegdb.msi
*

*GDAL MrSID driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-1-mapserver-6-4-1/gdal-110-1600-mrsid.msi
*

*GDAL Oracle driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-1-mapserver-6-4-1/gdal-110-1600-oracle.msi
*



*Installers based on the current MapServer stable branch (6.4) (compiled
daily)*



*MapServer MapManager
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-mapserver-6-4/MapManager.msi
*

*GDAL ECW driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-mapserver-6-4/gdal-110-1600-ecw.msi
*

*GDAL FileGDB driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-mapserver-6-4/gdal-110-1600-filegdb.msi
*

*GDAL MrSID driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-mapserver-6-4/gdal-110-1600-mrsid.msi
*

*GDAL Oracle driver
http://www.gisinternals.com/sdk/downloads/release-1600-gdal-1-10-mapserver-6-4/gdal-110-1600-oracle.msi
*



*For more information about using MapManager please refer to the online
help http://www.gisinternals.com/MapManager.*




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

Re: [mapserver-users] Connecting MSSQL from Mapserver on Linux fails

2014-02-03 Thread Tamas Szekeres
I don't see the driver section in your mssql connection string.

Tamas



2014-02-03 Jon Garrido jgarr...@tracom.info:

 I ‘ve finally conect with ogrifo with:







 ogrinfo
 MSSQL:Server=x,1093;uid=x;pwd=xx;database=ancashesp;driver=freetds;tables=ancashjon.Tramos



 Using this string connection in the mapfile the connections fails. I ‘ve
 realized that I must put a quote and double quote in the strig… but fails….



 CONNECTIONTYPE OGR

 CONNECTION
 'MSSQL:server=,1093;uid=xx;pwd=xx;database=ancashesp;tables=ancashjon.Tramos'



 Any idea?





 *De:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *En nombre de *Jon Garrido
 *Enviado el:* viernes, 17 de enero de 2014 9:08
 *Para:* mapserver-users@lists.osgeo.org
 *Asunto:* [mapserver-users] Connecting MSSQL from Mapserver on Linux fails



 Helo,



 I’m trying to connect to a MS Sql Server 2008 dabase from a Mapserver
 installed on a Ubuntu 12.04 machine.



 The fact is that when make de same connection test from another Mapserver
 on Windows I get no errors:



 From the OSGeo4W Shell from windows I type:



 C:ogrinfo
 MSSQL:server=Xxx.xxx.xx.xx,1093\MSSQL;uid=x;pwd=x;database=ancashesp;tables=admin.PKGeoLoc



 And the response:



 INFO: Open of
 `MSSQL:server=209.236.114.58,1093\MSSQL;uid=ancashjon;pwd=x;database=ancashesp;tables=admin.PKGeoLoc'
 using driver `MSSQLSpatial' successful.

 1: PKGeoLoc



 When I do the same from my linux terminal the response is:



 ERROR 1: Unable to initialize connection to the server for
 MSSQL:server=xxx.xx.
 xx.x,1093\MSSQL;uid=x;pwd=x;database=ancashesp;tables=admin.PKGeoLoc,

 [unixODBC][Driver Manager]Data source name not found, and no default
 driver specified

 ERROR 1: Unable to initialize connection to the server for
 MSSQL:server=xxx.xxx.xx,1093\MSSQL;uid=x;pwd=xx;database=ancashesp;tables=admin.PKGeoLoc,

 [unixODBC][Driver Manager]Data source name not found, and no default
 driver specified

 FAILURE:

 Unable to open datasource
 `MSSQL:server=xxx.xxx.xxx.xx,1093\MSSQL;uid=;
 pwd=x;database=ancashesp;tables=admin.PKGeoLoc' with the following
 drivers.

   - ESRI Shapefile

   - MapInfo File

   - UK .NTF

   - SDTS

   - TIGER

   - S57

   - DGN

   - VRT

   - REC

   - Memory

   - BNA

   - CSV

   - NAS

   - GML

   - GPX

   - KML

   - GeoJSON

   - Interlis 1

   - Interlis 2

   - GMT

   - SQLite

   - ODBC

   - PGeo

   - MSSQLSpatial

   - PostgreSQL

   - PCIDSK

   - XPlane

   - AVCBin

   - AVCE00

   - DXF

   - Geoconcept

   - GeoRSS

   - GPSTrackMaker

   - VFK

   - PGDump

   - OSM

   - GPSBabel

   - SUA

   - OpenAir

   - PDS

   - WFS

   - HTF

   - AeronavFAA

   - Geomedia

   - EDIGEO

   - GFT

   - SVG

   - CouchDB

   - Idrisi

   - ARCGEN

   - SEGUKOOA

   - SEGY

   - ODS

   - XLSX

   - ElasticSearch

   - PDF





 My gdal verion is GDAL 1.10.1, released 2013/08/26.



 Please I’m getting crazy!!! Any idea??





 ___
 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] Connecting MSSQL from Mapserver on Linux fails

2014-01-17 Thread Tamas Szekeres
I think you should specify the ODBC driver name in the connection string
(driver=[driver name]). I've never tested the connection on linux, though.

Best regards,

Tamas




2014/1/17 Jon Garrido jgarr...@tracom.info

 Helo,



 I’m trying to connect to a MS Sql Server 2008 dabase from a Mapserver
 installed on a Ubuntu 12.04 machine.



 The fact is that when make de same connection test from another Mapserver
 on Windows I get no errors:



 From the OSGeo4W Shell from windows I type:



 C:ogrinfo
 MSSQL:server=Xxx.xxx.xx.xx,1093\MSSQL;uid=x;pwd=x;database=ancashesp;tables=admin.PKGeoLoc



 And the response:



 INFO: Open of
 `MSSQL:server=209.236.114.58,1093\MSSQL;uid=ancashjon;pwd=x;database=ancashesp;tables=admin.PKGeoLoc'
 using driver `MSSQLSpatial' successful.

 1: PKGeoLoc



 When I do the same from my linux terminal the response is:



 ERROR 1: Unable to initialize connection to the server for
 MSSQL:server=xxx.xx.
 xx.x,1093\MSSQL;uid=x;pwd=x;database=ancashesp;tables=admin.PKGeoLoc,

 [unixODBC][Driver Manager]Data source name not found, and no default
 driver specified

 ERROR 1: Unable to initialize connection to the server for
 MSSQL:server=xxx.xxx.xx,1093\MSSQL;uid=x;pwd=xx;database=ancashesp;tables=admin.PKGeoLoc,

 [unixODBC][Driver Manager]Data source name not found, and no default
 driver specified

 FAILURE:

 Unable to open datasource
 `MSSQL:server=xxx.xxx.xxx.xx,1093\MSSQL;uid=;
 pwd=x;database=ancashesp;tables=admin.PKGeoLoc' with the following
 drivers.

   - ESRI Shapefile

   - MapInfo File

   - UK .NTF

   - SDTS

   - TIGER

   - S57

   - DGN

   - VRT

   - REC

   - Memory

   - BNA

   - CSV

   - NAS

   - GML

   - GPX

   - KML

   - GeoJSON

   - Interlis 1

   - Interlis 2

   - GMT

   - SQLite

   - ODBC

   - PGeo

   - MSSQLSpatial

   - PostgreSQL

   - PCIDSK

   - XPlane

   - AVCBin

   - AVCE00

   - DXF

   - Geoconcept

   - GeoRSS

   - GPSTrackMaker

   - VFK

   - PGDump

   - OSM

   - GPSBabel

   - SUA

   - OpenAir

   - PDS

   - WFS

   - HTF

   - AeronavFAA

   - Geomedia

   - EDIGEO

   - GFT

   - SVG

   - CouchDB

   - Idrisi

   - ARCGEN

   - SEGUKOOA

   - SEGY

   - ODS

   - XLSX

   - ElasticSearch

   - PDF





 My gdal verion is GDAL 1.10.1, released 2013/08/26.



 Please I’m getting crazy!!! Any idea??





 ___
 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] MspServer Cluster Problem.

2014-01-09 Thread Tamas Szekeres
You are using CLASSITEM status but you have only classes defined for E
and D in the layer. The status value is empty for those clusters which
has mixed values of the same attribute in the individual shapes contained
by the cluster and probably these clusters are not displayed.

However with the recent version of mapserver (in master) this behaviour has
been changed.

Best regards,

Tamas



2014/1/9 LewInMadrid lcl...@genasys.com

 I'm trying to cluster a few thousand points but as I zoom out points
 disappear until I have an almost empty map instead of a few cluster symbols
 with big numbers.

 I'm using MapServer v6.0.2
 Here's an example with 2 different zoom levels.
 http://osgeo-org.1560.x6.nabble.com/file/n5097138/map_zoom_in.png
 http://osgeo-org.1560.x6.nabble.com/file/n5097138/map_zoom_out.png

   LAYER
 NAME my_point_layer
 STATUS ON
 CONNECTIONTYPE POSTGIS
 CONNECTION host=127.0.0.1 port=5432 dbname=rasterdb user=postgres
 password=postgres
 DATA g_point FROM my_point_table USING UNIQUE gid USING SRID=900913
 TYPE POINT
 PROJECTION
   init=epsg:900913
 END
 CLUSTER
   MAXDISTANCE 30  # in pixels
   REGION rectangle  # can be rectangle or ellipse
 END
 LABELITEM Cluster:FeatureCount
 CLASSITEM status
 CLASS
   NAME   D
   EXPRESSION D
   STYLE
 SYMBOL circle
 ANTIALIAS TRUE
 SIZE 8
 OUTLINECOLOR 0 0 0
   END
 END
 CLASS
   NAME   E
   EXPRESSION E
 #  TEXT [idelem]
   STYLE
 SYMBOL circle
 ANTIALIAS TRUE
 SIZE 25
 COLOR 0 255 0
 OUTLINECOLOR 0 0 0
   END
   LABEL
 FONT vera_sans-bold-italic
 TYPE TRUETYPE
 SIZE 8
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 ALIGN CENTER
 PRIORITY 9
 POSITION cc
   END
 END
   END






 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/MspServer-Cluster-Problem-tp5097138.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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

Re: [mapserver-users] mapserver 6.4 binary?

2013-09-23 Thread Tamas Szekeres
Hi John,

Just working on it. Needs a bit of time to compile them all.

Best regards,

Tamas



2013/9/23 John Smith jayzee.sm...@gmail.com

 http://www.gisinternals.com/sdk/ still shows
 release-1600-x64-gdal-1-10-mapserver-6-2.

 is release-1600-x64-gdal-1-10-mapserver-6-4 available anywhere?

 thanks tamas, jzs


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

Re: [mapserver-users] Oracle access using CONNECTIONTYPE PLUGIN

2013-07-30 Thread Tamas Szekeres
Hi,

I'm not exactly sure about your issue specifically but if you don't specify
the full tns name in the connection string, then oci will look up for
tnsnames.ora at specific locations. Use Process
Monitorhttp://technet.microsoft.com/en-us/sysinternals/bb896645.aspxto
identify the possible lookup locations.

Best regards,

Tamas



2013/7/30 nelly.how...@kivbf.de

   Hi,

 ** **

 I try to access an oracle DB using following entry in mapfile:

 ** **

 CONNECTIONTYPE PLUGIN

 PLUGIN msplugin_oracle.dll

 CONNECTION localhost,port:1521,DBname,user,password 

 DATA GEOM FROM WSG USING SRID 31467

 ** **

 I installed Oracle 11g locally on Windows 2008 R2 64 bit system and can
 connect to it via Net Manager or SQL Developer.

 I use a compiled mapserver  release MSVC2010 Win 64 downloaded from
 http://www.gisinternals.com/sdk/, which works fine with file based
 geodata.

 ** **

 Now I get an error message ORA-01005 (null password given; logon denied),
 but I set password correctly.

 ** **

 Has anybody an idea, what I am making wrong? Has connection string using
 oracle another syntax?

 ** **

 Thanks in advance

 Nelly



 Kommunale Informationsverarbeitung Baden-Franken

 Nelly Howind
 **
 Kommunale Dienstleistungen**
 **Geoinformation und Umwelt**
 Betriebsstätte Karlsruhe
 **
 Pfannkuchstraße 4**, 76185** Karlsruhe
   Fon: +49 721 9529 351  Fax: +49 721 9529 500351  E-Mail:
 nelly.how...@kivbf.de  Internet: http://www.kivbf.de

  --

 Zweckverband
 Kommunale Informationsverarbeitung Baden-Franken

 Pfannkuchstraße 4, 76185 Karlsruhe

 Fon +49 721 9529 0, Fax +49 721 9529 120
 Verbandsvorsitzender: LR Hämmerle
 Hauptgeschäftsführer: William Schmitt

 Kommunales Rechenzentrum Baden Franken GmbH

 Pfannkuchstraße 4, 76185 Karlsruhe

 Fon +49 721 9529 0, Fax +49 721 9529 120

 Hauptgeschäftsführer: William Schmitt
 Handelsregister des Amtsgerichts Mannheim Nr. HRB 109683



 **

  **
  **
  
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **
 **

 ___
 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] Mapscript 6.2 / sql plugin bug for multipart geometries

2013-07-01 Thread Tamas Szekeres
James,

Could you provide a sample geometry to reproduce the issue?

Best regards,

Tamas




2013/7/1 James Perrins james.perr...@gmail.com

 Hi,

 I recently moved from Mapserver 6.0 to 6.21 and have one bit of code which
 is behaving differently (and I think incorrectly)

 In 6.0 when a resultCacheObj was returned containing a multipart
 geometry, oResults.bounds.maxx etc would give the extent of the multipart
 geometry.

 In 6.2 this seems to now give the extent of only one part of the multipart
 geometry (presumably the first / last?)

 I have worked around this for the moment - but its a definite change from
 6.0 and I can't really see it being meant.

 However I don't know where the error lies - data is coming from SQL using
 Tamas SQL plugin - so potentially it could be in there - or somewhere in
 mapserver itself I guess

 Thanks
 James

 ___
 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] Mapscript_csharp and GDAL_DATA

2013-05-29 Thread Tamas Szekeres
David,

You probably use the GDAL ECW driver (specifically the plugin) to draw the
ecw layer. To use the GDAL/OGR plugins in your application, you should
either copy the plugin dll-s into a /gdalplugins subdirectory from where
your application is running or (alternatively) set GDAL_DRIVER_PATH
environment variable to point to this location. To set this parameter
programmatically you should use Gdal.SetConfigOption instead of
SetenvironmentVariable which change is not visible by the getenv function
call used by GDAL.

You should also make sure to copy the correct version of libecwj2.dll into
your application directory (which is not necessarily the same as the
plugins directory).


Best regards,

Tamas



2013/5/29 David Lowther dlowt...@coordinatesolutions.com

 Hi List,

 ** **

 I’ve run into a bit of an issue. Using
 release-1600-gdal-1-8-0-mapserver-5-6-6http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-gdal-1-8-0-mapserver-5-6-6.zipin
  my .Net project I cannot get ECW images to draw. I receive this error:
 

 ** **

 msDrawMap(): Image handling error. Failed to draw layer named
 'ecw'.;msDrawRaster(): Image handling error. Unrecognized or unsupported
 image format;drawEPP(): Image handling error. EPPL7 support is not
 available.

 ** **

 I believe that this means that the ECW driver is not found and the EPPL7
 is just the last one of the list that Mapserver tried to use. 

 ** **

 I am able to generate an image from the mapfile using both shp2img and
 drawmap when the SDKShell.bat is executed, so I believe that the issue in
 my .Net app is with environment variables not being set in the .Net
 application. The application is a web application, but I experience the
 same issue in a console application. 

 ** **

 I’ve tried the guidance from gis.stackexchange pointing to this gdal
 advice:
 https://bitbucket.org/bjartn/gdalgonewild/src/4be6d86fef24/src/GdalGoneWild.Client/GdalEnvironment.cs?at=defaultwithout
  luck.
 

 ** **

 Am I on the right track with the environment variables? Has anyone had any
 luck setting these environment variables (GDAL_DATA, GDAL_DRIVER, PROJ_LIB)
 in .Net code for Mapscript use? If so, can you guide me? Or, is there a
 work around? I am even willing to put everything in the bin directory if
 that is the only way to make things work.

 ** **

 Thanks a ton in advance for your assistance.

 ** **

 Dave Lowther

 Coordinate Solutions, Inc

 ** **

 ___
 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] STYLEITEM AUTO or similar for other connection types?

2013-05-23 Thread Tamas Szekeres
Hi,

Assuming the style definition exists in OGR style format or in MapServer
STYLE or CLASS definitions, you can use STYLEITEM attributename which
should work with all drivers (not just with OGR)

When using the OGR driver (and not using the MapInfo driver), you should
use OGR_STYLE as the attribute name to have the feature style set up by OGR
automatically. In this case the style attribute should contain OGR style
strings.


Best regards,

Tamas



2013/5/23 Jackey Cheung cheung.jac...@gmail.com

 Hi all,

 Just a short question, does the STYLEITEM supported only for OGR?

 Say I have a column that stores OGR style definitions in Oracle. Must I
 use OGR connection type to utilize those styles? I've tried use
 ORACLESPATIAL, but can't seem to use those styles.

 ___
 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] Problems getting FileGDB to work

2013-04-04 Thread Tamas Szekeres
Are you running the cgi mapserv.exe or some other host process loading gdal
and the plugins?

Make sure you use the same architecture (x86/x64) for both the host process
and the plugin. You should also use the matching version of FileGDBAPI.dll
loaded.

You should either place the plugin into a /gdalplugins subdirectory from
where the application is running or use the GDAL_DRIVER_PATH environment
variable to specify the correct location. Also check the file access
permissions so that the dlls can be loaded by the executing user.

Best regards,

Tamas



2013/4/4 James Perrins james.perr...@gmail.com

 Hi,

 We have a server (x64) with mapserver 6.2 on it which is generally running
 fine
 Until we are trying to access an ESRI FileGDB layer when we keep getting:

 ServiceException
 msDrawMap(): Image handling error. Failed to draw layer named
 #39;MMBDLine#39;.
 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
 `MMBDLine#39;.  File not found or unsupported format.
 /ServiceException

 If we test with shp2img on the same map file - it all works - so obviously
 we have the ogr drivers installed on the server ok.

 If I use something like sysinternals to check the files accessed - the
 mapserver call scans the plugins folder - sees the plugin dll there - but
 never seems to load it.
 Same call on shp2img appears to access and load the dll properly and all
 works
 Not seeing any other obvious errors.

 Any clues ?
 I 've wondered about
  - different user accounts - but I don't seem to be getting any access
 denied errors.
  - 64 bit - I made sure the IIS application pool was 32 bit
  - some other pathing issue - do I need a path variable set or somesuch ?

 Many Thanks
 James



 ___
 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] CLUSTER - Average Value

2013-03-22 Thread Tamas Szekeres
Mark,

I think LABEL level expressions would work in this case. Something like:

 LABEL
TEXT ([Sum:itemname]/[Count:itemname])
TYPE TRUETYPE
...
  END

Best regards,

Tamas



2013/3/22 Mark Davidson m...@4each.co.uk

 Hi All,

 I'm new to using mapserver and have been implementing a WMS overlay using
 the CLUSTER funcionality got pretty much everything I need working, but I
 can't seem to get an average value of a cluster to use as part of the
 styling and labelling.
 I've tried everything I can think of to try and get it working but am
 having no luck. I thought that since you can do [Max:itemname] and
 [Count:itemname] I would be able to do an equation to work out the average,
 but I just get syntax errors with everything I try and haven't been able to
 find any examples of doing this.

 Could anyone tell me if its possible to do this? And if so provide an
 example?

 Any input would be very much appreciated,

 Thanks,

 Mark Davidson

 ___
 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] CLUSTER - Average Value

2013-03-22 Thread Tamas Szekeres
I think adding multiple classes to the clustered layer (with multiple
expressions regarding to the intervals) should do the job.

Best regards,

Tamas



2013/3/22 Mark Davidson m...@4each.co.uk

 That works great thanks Tamas. I'm now trying to use that expression as a
 condition on a class.

 I'm trying to style the clusters a different colour depending on the
 calculation of that expression. Can multiple styles be applied to a single
 cluster point?

 CLASS
   NAME Clustered Point
   EXPRESSION ([Cluster:FeatureCount] != 1)
   STYLE
 SIZE 22
 SYMBOL circle
 COLOR 255 0 0
   END
   LABEL
   TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature])
   FONT arial
   TYPE truetype
 SIZE 8
 COLOR 255 255 255
   END
 END

   CLASS
   EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature])  1)
   STYLE
 SYMBOL circle
 COLOR 0 255 0
   END
   END



 On 22 March 2013 13:15, Tamas Szekeres szeker...@gmail.com wrote:

 Mark,

 I think LABEL level expressions would work in this case. Something like:

  LABEL
 TEXT ([Sum:itemname]/[Count:itemname])
 TYPE TRUETYPE
 ...
   END

 Best regards,

 Tamas



 2013/3/22 Mark Davidson m...@4each.co.uk

 Hi All,

 I'm new to using mapserver and have been implementing a WMS overlay
 using the CLUSTER funcionality got pretty much everything I need working,
 but I can't seem to get an average value of a cluster to use as part of the
 styling and labelling.
 I've tried everything I can think of to try and get it working but am
 having no luck. I thought that since you can do [Max:itemname] and
 [Count:itemname] I would be able to do an equation to work out the average,
 but I just get syntax errors with everything I try and haven't been able to
 find any examples of doing this.

 Could anyone tell me if its possible to do this? And if so provide an
 example?

 Any input would be very much appreciated,

 Thanks,

 Mark Davidson

 ___
 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] CLUSTER - Average Value

2013-03-22 Thread Tamas Szekeres
May be I misunderstood something, but the requirement of style the
clusters a different colour depending on the calculation of that
expression requires only one class per expression condition.

Tamas



2013/3/22 thomas bonfort thomas.bonf...@gmail.com

 Unless the cluster introduced some new codepaths in the rendering
 chain, I do not think this is the case. Only a *single* class gets
 used per rendered feature (the first one matching all expression and
 min/maxscale constraints)

 --
 thomas

 On 22 March 2013 14:59, Tamas Szekeres szeker...@gmail.com wrote:
  I think adding multiple classes to the clustered layer (with multiple
  expressions regarding to the intervals) should do the job.
 
  Best regards,
 
  Tamas
 
 
 
  2013/3/22 Mark Davidson m...@4each.co.uk
 
  That works great thanks Tamas. I'm now trying to use that expression as
 a
  condition on a class.
 
  I'm trying to style the clusters a different colour depending on the
  calculation of that expression. Can multiple styles be applied to a
 single
  cluster point?
 
  CLASS
NAME Clustered Point
EXPRESSION ([Cluster:FeatureCount] != 1)
STYLE
  SIZE 22
  SYMBOL circle
  COLOR 255 0 0
END
LABEL
TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature])
FONT arial
TYPE truetype
  SIZE 8
  COLOR 255 255 255
END
  END
 
CLASS
EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature]) 
 1)
STYLE
  SYMBOL circle
  COLOR 0 255 0
END
END
 
 
 
  On 22 March 2013 13:15, Tamas Szekeres szeker...@gmail.com wrote:
 
  Mark,
 
  I think LABEL level expressions would work in this case. Something
 like:
 
   LABEL
  TEXT ([Sum:itemname]/[Count:itemname])
  TYPE TRUETYPE
  ...
END
 
  Best regards,
 
  Tamas
 
 
 
  2013/3/22 Mark Davidson m...@4each.co.uk
 
  Hi All,
 
  I'm new to using mapserver and have been implementing a WMS overlay
  using the CLUSTER funcionality got pretty much everything I need
 working,
  but I can't seem to get an average value of a cluster to use as part
 of the
  styling and labelling.
  I've tried everything I can think of to try and get it working but am
  having no luck. I thought that since you can do [Max:itemname] and
  [Count:itemname] I would be able to do an equation to work out the
 average,
  but I just get syntax errors with everything I try and haven't been
 able to
  find any examples of doing this.
 
  Could anyone tell me if its possible to do this? And if so provide an
  example?
 
  Any input would be very much appreciated,
 
  Thanks,
 
  Mark Davidson
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 

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


Re: [mapserver-users] CLUSTER - Average Value

2013-03-22 Thread Tamas Szekeres
For each feature only one class is selected at rendering time. For this
reason you should define the multiple classes for the circles of different
colours (and expressions) and then copy (duplicate) the label setting in
each class.

Best regards,

Tamas



2013/3/22 Mark Davidson m...@4each.co.uk

 What in essence I would like to be able to do is set one CLASS with a
 style to make the clusters circles with labels. Then have additional
 classes that have expressions to set the colouring of the circles dependant
 on the average value. Does that make it clearer?

 On 22 March 2013 15:21, Tamas Szekeres szeker...@gmail.com wrote:

 May be I misunderstood something, but the requirement of style the
 clusters a different colour depending on the calculation of that
 expression requires only one class per expression condition.

 Tamas



 2013/3/22 thomas bonfort thomas.bonf...@gmail.com

 Unless the cluster introduced some new codepaths in the rendering
 chain, I do not think this is the case. Only a *single* class gets
 used per rendered feature (the first one matching all expression and
 min/maxscale constraints)

 --
 thomas

 On 22 March 2013 14:59, Tamas Szekeres szeker...@gmail.com wrote:
  I think adding multiple classes to the clustered layer (with multiple
  expressions regarding to the intervals) should do the job.
 
  Best regards,
 
  Tamas
 
 
 
  2013/3/22 Mark Davidson m...@4each.co.uk
 
  That works great thanks Tamas. I'm now trying to use that expression
 as a
  condition on a class.
 
  I'm trying to style the clusters a different colour depending on the
  calculation of that expression. Can multiple styles be applied to a
 single
  cluster point?
 
  CLASS
NAME Clustered Point
EXPRESSION ([Cluster:FeatureCount] != 1)
STYLE
  SIZE 22
  SYMBOL circle
  COLOR 255 0 0
END
LABEL
TEXT ([Sum:lowesttemperature]/[Count:lowesttemperature])
FONT arial
TYPE truetype
  SIZE 8
  COLOR 255 255 255
END
  END
 
CLASS
EXPRESSION (([Sum:lowesttemperature]/[Count:lowesttemperature])
  1)
STYLE
  SYMBOL circle
  COLOR 0 255 0
END
END
 
 
 
  On 22 March 2013 13:15, Tamas Szekeres szeker...@gmail.com wrote:
 
  Mark,
 
  I think LABEL level expressions would work in this case. Something
 like:
 
   LABEL
  TEXT ([Sum:itemname]/[Count:itemname])
  TYPE TRUETYPE
  ...
END
 
  Best regards,
 
  Tamas
 
 
 
  2013/3/22 Mark Davidson m...@4each.co.uk
 
  Hi All,
 
  I'm new to using mapserver and have been implementing a WMS overlay
  using the CLUSTER funcionality got pretty much everything I need
 working,
  but I can't seem to get an average value of a cluster to use as
 part of the
  styling and labelling.
  I've tried everything I can think of to try and get it working but
 am
  having no luck. I thought that since you can do [Max:itemname] and
  [Count:itemname] I would be able to do an equation to work out the
 average,
  but I just get syntax errors with everything I try and haven't been
 able to
  find any examples of doing this.
 
  Could anyone tell me if its possible to do this? And if so provide
 an
  example?
 
  Any input would be very much appreciated,
 
  Thanks,
 
  Mark Davidson
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 




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


Re: [mapserver-users] MapScript EntryPointNotFoundException 'CSharp_MS_LABEL_ALLOCSIZE_get'

2013-03-20 Thread Tamas Szekeres
Hans,

You probably have an older version on mapscript dll available in the PATH
which is loaded at run time instead of the correct version.
Make sure mapscript_csharp.dll loads the proper version of mapscript.dll.

Best regards,

Tamas



2013/3/20 Hans Wapenaar (GIS Innovations) hans.wapen...@gis-innovations.nl

 Hi,

 ** **

 I am upgrading a website with MapServer 5.6 to 6.2.

 Website was made in Visual Studio using MapScript. After some adjustments
 I got it running in Visual Studio. But when I publish the website on a
 server with IIS 7.5 the following error appears:

 ** **

 Error in initMapJ: System.TypeInitializationException: 

 The type initializer for 'OSGeo.MapServer.mapscript' threw an exception.
 --- 

 System.EntryPointNotFoundException: Unable to find an entry point named
 'CSharp_MS_LABEL_ALLOCSIZE_get' in DLL 'mapscript'.

at OSGeo.MapServer.mapscriptPINVOKE.MS_LABEL_ALLOCSIZE_get()

at OSGeo.MapServer.mapscript..cctor()

--- End of inner exception stack trace ---

 ** **

 In initMapJ the mapObj is created/mapfile opened.

 The error appears at moment that a layer object is read.

 ** **

 I have no idea where to look. I tried removing all label settings from the
 mapfile. But I thinks it something else.

 Any suggestions/ideas?

 ** **

 Thank, Hans Wapenaar

 ** **

 ___
 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] Build Perl-Mapscript om Windows

2013-02-18 Thread Tamas Szekeres
Hi,

Just gave it a try and I could successfully compile Perl this way:

1. Install 
ActivePerl-5.16.2.1602-MSWin32-x86-296513.msihttp://www.activestate.com/activeperl/downloads/thank-you?dl=http://downloads.activestate.com/ActivePerl/releases/5.16.2.1602/ActivePerl-5.16.2.1602-MSWin32-x86-296513.msi
into
a given folder (ie: C:\Perl)

2. Download the SDK package
http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1500-dev.zip
Extract these files into a folder, let's say: E:\builds

3. Checkout mapserver sources into the SDK root, ie: E:\builds\mapserver

4. Open Visual Studio 2008 Command Prompt

5. Change directory to E:\builds
   cd E:\builds

6. Compile mapserver:
   nmake ms MS_DIR=mapserver

7. Go to perl dir:
  cd mapserver\mapscript\perl

8. Copy the attached makefile.vc into this subdirectory

9. Compile the Perl bindings

 nmake -f
makefile.vcEXT_NMAKE_OPT=E:\builds\release-1500\mapserver.opt
PERL_DIR=C:\Perl


I suspect Perl may have a more sophisticated compilation approach, but my
knowledge of Pearl is near to nothing.


Best regards,

Tamas




2013/2/18 Helmut Seidel M.A. i...@knowhow-la.de

 Hello everybody,

 my employer wants me to start a mapserver project with perl MapScript in a
 Windows environment, as we do most of our programming in Perl. I've tried
 some html-coding with mapserver and a few very basic perl MapScript
 examples on my Linux machine so far.

 Now comes the task of moving to windows. I have learned that all binary
 distributions do not come with Perl MapScript, so it seems I have to build
 Mapserver from source. (I've only ever built minor projects from source -
 so maybe not everything I say is quite correct). I've browsed the net for
 two day now (not all the time) but I couldn't find instructions how to
 build Mapserver with Perl MapScript support.

 So can anybody please give a few instructions (for built-newbees) howto
 build Perl Mapscript?

 Thanks and regards
 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://lists.osgeo.org/mailman/listinfo/mapserver-users



Makefile.vc
Description: Binary data
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapInfo symbol file

2013-01-10 Thread Tamas Szekeres
We have been trying to implement mapinfo brush patterns as vector symbols,
but that is not possible due to the antialias behaviour of the newer
renderers. Therefore I've scheduled to implement BITMAP symbol type which
provides to define the pixel patterns accurately.

Best regards,

Tamas



2013/1/10 thomas bonfort thomas.bonf...@gmail.com

 You won't be able to produce all mapinfo symbols with recentish versions
 of mapserver. Tamas started a discussion about this a few months ago on the
 -dev list, proposing a new BITMAP symbol type.

 --
 thomas


 On 10 January 2013 15:08, Bertrand Gervais bertrand.gervais@gmail.com
  wrote:

 Yes, you are right. I did not know there was a MapServer Symbology
 Exchange wiki. Thanks.
 I will share my MapInfo symbol file when I will be able to collect or
 code all symbols.


 Bertrand


 2013/1/10 Jeff McKenna jmcke...@gatewaygeomatics.com

 On 13-01-10 9:57 AM, Bertrand Gervais wrote:
  Hi,
 
  Thanks. I have actually found this file but, as you say, it only deals
  with old MapServer symbols.
  I am just surprised not to find an up-to-date symbol file, describing
  all latest standard symbols.

 Maybe as you travel down this path, you can document your files/symbols
 on the MapServer wiki (https://github.com/mapserver/mapserver/wiki).

 Thanks!

 -jeff




 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.com/


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



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



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


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


Re: [mapserver-users] MapInfo symbol file

2013-01-10 Thread Tamas Szekeres
I also thought to add some kind of built in support for the mapinfo
patterns in the OGR driver, but I'm not quite sure about the licensing
concerns.

Best regards,

Tamas



2013/1/10 Bertrand Gervais bertrand.gervais@gmail.com


 Ok, I understand. Then it will be easy coding all MapInfo standard
 patterns, since all of them are already available as image files on the
 web. Thanks.

 Bertrand




 2013/1/10 Tamas Szekeres szeker...@gmail.com

 We have been trying to implement mapinfo brush patterns as vector
 symbols, but that is not possible due to the antialias behaviour of the
 newer renderers. Therefore I've scheduled to implement BITMAP symbol type
 which provides to define the pixel patterns accurately.

 Best regards,

 Tamas



 2013/1/10 thomas bonfort thomas.bonf...@gmail.com

 You won't be able to produce all mapinfo symbols with recentish versions
 of mapserver. Tamas started a discussion about this a few months ago on the
 -dev list, proposing a new BITMAP symbol type.

 --
 thomas


 On 10 January 2013 15:08, Bertrand Gervais 
 bertrand.gervais@gmail.com wrote:

 Yes, you are right. I did not know there was a MapServer Symbology
 Exchange wiki. Thanks.
 I will share my MapInfo symbol file when I will be able to collect or
 code all symbols.


 Bertrand


 2013/1/10 Jeff McKenna jmcke...@gatewaygeomatics.com

 On 13-01-10 9:57 AM, Bertrand Gervais wrote:
  Hi,
 
  Thanks. I have actually found this file but, as you say, it only
 deals
  with old MapServer symbols.
  I am just surprised not to find an up-to-date symbol file, describing
  all latest standard symbols.

 Maybe as you travel down this path, you can document your files/symbols
 on the MapServer wiki (https://github.com/mapserver/mapserver/wiki).

 Thanks!

 -jeff




 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.com/


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



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



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




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


Re: [mapserver-users] Use STYLEITEM to style individual features?

2012-11-29 Thread Tamas Szekeres
Alex,

This is indeed a bug in mapserver, symbol indexes are not resolved from
symbol names when updating a style from string. You might want to file a
ticket and assign that to me in the github issue
trackerhttps://github.com/mapserver/mapserver/issues/new
.

Best regards,

Tamas



2012/11/29 Alexander Schenkel aschen...@kadenpartner.ch

 Dear all,

 We have the following setup:

 Our features come as DB records out of a PostGIS 1.5 database, which
 contains a column mapserver_style besides other data columns. We want
 to use that column to style the individual features.

 Since MapServer 6.0 (we use 6.0.2), the Mapserver LAYER config knows the
 STYLEITEM configuration attribute, which takes the name of an
 item (DB column, in our case), and, according to the documentation,
 should contain a STYLE ...END string.

 This seems not to be working or we use it the wrong way. Our Mapfile's
 LAYER definition looks as follows (cleaned out
 all irrelevant information):


 ##
 LAYER
   NAME layername
   DATA wkb_geometry from (SELECT
 wkb_geometry,mapserver_style,some_other_data) as foo using SRID=21781,
 using unique ogc_fid

   TYPE POINT
   STATUS ON
   OPACITY 100
   DUMP TRUE
   STYLEITEM mapserver_style

   CLASS
   END
 END
 ##

 while mapserver_style corresponds to the database column containing
 the STYLE  END string.

 As an example, the mapserver_style column for a single feature contains:

 STYLE
 SIZE 10
 COLOR 135 255 135
 OUTLINEWIDTH 2
 OUTLINECOLOR 0 0 0
 SYMBOL 'filled square'
 END

 which does NOT draw any visible feature on the map.

 If we just surround this example with CLASS  END, it basically
 works, BUT the class(es) then match every single feature, leading to
 overlapping feature symbols
 for every single feature appearing after the class has been defined:

 CLASS
 STYLE
 SIZE 10
 COLOR 135 255 135
 OUTLINEWIDTH 2
 OUTLINECOLOR 0 0 0
 SYMBOL 'filled square'
 END
 END

 So can anybody tell us how we can style features on a per-feature basis
 using the STYLEITEM config? Or is this the wrong way?

 Many thanks for your support,

 alex




 ___
 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] OGR MSSQL Server on specified Port Number fails to connect

2012-11-06 Thread Tamas Szekeres
David,

This might indeed be a bug in the OGR driver. Just file a ticket for that
in the GDAL issue tracker http://trac.osgeo.org/gdal/newticket.

Best regards,

Tamas



2012/11/6 David Martin da...@itbeyond.com.au

  Hi,

 I have a geodata source on SQLServer 2008 and have been using for a number
 of years the msplugin_mssql2008.dll plugin. I now want to use some stored
 procedures in my SQL server to render the geo data to MapServer. So I have
 been working with the OGR driver however I have found what I think is a
 problem when the SQL server is on a none standard TCP port as the comma in
 the server definition gets thrown away when rendering the layer using a map
 file via shp2img. I can use ogrinfo without problem but as soon as I carry
 the string to the OGR layer in the .map file and run shp2img –all_debug 1 I
 see that the tcp port of my SQL server is removed and hence the connection
 fails. 

 ** **

 So the working OGR syntax is:

 ogrinfo MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated
 Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)
 -summary

 INFO: Open of `MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated
 Security=false;server=MY_WEB-SqlServer.com,4670;tables=PointPlace_Waypoints(Position)'
 

   using driver `MSSQLSpatial' successful.

 1: PointPlace_Waypoints

 ** **

 NOTE: The TCP Port is 4670 – this is the same as used in the mssql2008.dll
 plug in.

 ** **

 When I use shp2img this is what I get:

 shp2img -m latest.map -o test.png -all_debug 1

 msDrawMap(): rendering using outputformat named png (AGG/PNG8).

 msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated
 Security=false;server=MY_WEB-SqlServer.com,4670)...

 OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated
 Security=false;server= MY_WEB-SqlServer.com)

 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
 `latest1'.

 Unable to initialize connection to the server for
 MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=
 MY_WEB-SqlServer.com,

 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
 access denied.

 ** **

 msDrawMap(): Image handling error. Failed to draw layer named 'latest1'.**
 **

 msDrawMap(): Image handling error. Failed to draw layer named 'latest1'.
 br

 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer
 `latest1'.

 Unable to initialize connection to the server for
 MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated Security=false;server=
 MY_WEB-SqlServer.com,

 [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or
 access denied.

 ** **

 You will notice that two lines:

 msOGRFileOpen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated
 Security=false;server=MY_WEB-SqlServer.com,4670)...

 OGROPen(MSSQL:uid=xxx;pwd=xxx;database=xxx;Integrated
 Security=false;server= MY_WEB-SqlServer.com)

 ** **

 The system is calling msOGRFileOpen with a ,4670 but the OGROPen has
 removed the comma and tcp port number hence my connection fails.

 ** **

 Is there a resolution to this or is there another way to execute stored
 procedures with MapServer layers?

 ** **

 David

 ___
 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] 6.2.0-rc1: error while compiling the csharp mapscript module: OSGeo.MapServer.mapscriptPINVOKE.mapscriptPINVOKE()' is already defined

2012-10-15 Thread Tamas Szekeres
Tim,

What is the version of SWIG you use. I'm using SWIG 1.3.39 which appears to
generate compilable code.

Best regards,

Tamas



2012/10/15 Tim Banchi tim.ban...@gmail.com

 Hello,

 when I try to compile the csharp mapscript module of mapserver 6.2.0.rc1 I
 get the following error:

 mapscriptPINVOKE.cs(192,10): error CS0111: A member
 `OSGeo.MapServer.mapscriptPINVOKE.mapscriptPINVOKE()' is already defined.
 Rename this member or use different parameter types.

 I tried to delete the dubble entry of the member mapscriptPINVOKE() in the
 mapscriptPINVOKE.cs file but this file seems to be autogenerated by the
 compilation process. I do understand too little of the make process to
 adapt the compile script (probably somebody can help me with that?).

 I configured, compiled and installed the mapserver with the following
 options:
 ./configure --with-wfs --with-wcs --with-sos --with-wmsclient
 --with-wfsclient --with-proj --with-gdal --with-ogr --with-geos --with-gd
 --with-tiff --with-jpeg --with-agg --with-eppl --with-postgis --with-sde
 --with-freetype --with-threads --with-experimental-png

 but also other configurations (without any parameters or disabling fastcgi
 because there is a post of 2006 with problems with the csharp module if
 fastcgi enabled) doesn't make any difference. also with older versions of
 mapserver (eg stable the latest stable version 6.0.3. or the latest stable
 version of 5.8.x) I get exactly the same error message.

 I run ubuntu 12.04 x86 and have mapserver installed via the packaging
 system (I could not not find any csharp-mapscript package),

 can anybody help me with
 - find a precompiled csharp_mapscript package for ubuntu 12.04 x86
 - adapt the compile script so the member mapscriptPINVOKE is not written
 twice
 - help me with the configuration of the mapserver to solve the compile
 problem

 Tim




 ___
 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] IIS + PHP on Win2008r2 (x64)

2012-09-12 Thread Tamas Szekeres
2012/9/12 Benjamin Fore ben.f...@usu.edu


 The builds at vbkto.dyndns.org/ don’t include this DLL, and I’d rather
 not have to figure out the build process if there’s any way to avoid that.
 

 ** **



Not sure why has it been disabled from the builds at
http://www.gisinternals.com/sdk/
I have now re-enabled the builds, so the next daily build packaged should
contain the compiled php bindings.

Best regards,

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


Re: [mapserver-users] Mapscript Java Interface for 64 Bit Java Version?

2012-06-13 Thread Tamas Szekeres
Jacob,

As far as I remember the gisinternals build server compiles java mapscript
for x64.
http://www.gisinternals.com/sdk/

Best regards,

Tamas



2012/6/11 Jacob Mendt jacob.me...@mailbox.tu-dresden.de

  Hello List.

 I appreciate the work which is done around the mapserver. Right now I try
 to use the java mapscript interface and I got the following issue.

 I already got the java mapscript interface running. But right now it is
 only working with a 32-bit java version. My question is now, if there is
 also any support for 64-bit java version? 

 My runtime environment is:

 -  Windows 7 (64 bit)

 -  MS4W v3.0.2 packet (Mapscript 5.6.6.)

 -  Java Version: 1.7.0_0.4 (32-bit)

 I am looking forward to hear from you.

 Kind regards,

 JM

 ___
 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] Mapscript Java Interface for 64 Bit Java Version?

2012-06-13 Thread Tamas Szekeres
Hi Umberto,

If you have msvc installed, you can use the corresponding sdk package (from
this site) to do a command line build. For details see the readme file.

Best regards,

Tamas



2012/6/13 Umberto Nicoletti umberto.nicole...@gmail.com

 Tamas, thanks for the link.

 Recently I was working on:

 https://github.com/mapserver/mapserver/issues/4231

 and had some trouble with Windows builds because I simply don't have a
 build env for Windows and had to ask jmckenna to pull and build for me.
 So I ended up with a gcc only fix.

 Any chance that I can use the build tools ot that link so that I can fix
 the issue  for Windows too?

 Cheers,
 Umberto


 On Wed, Jun 13, 2012 at 9:01 AM, Tamas Szekeres szeker...@gmail.comwrote:

 Jacob,

 As far as I remember the gisinternals build server compiles java
 mapscript for x64.
 http://www.gisinternals.com/sdk/

 Best regards,

 Tamas



 2012/6/11 Jacob Mendt jacob.me...@mailbox.tu-dresden.de

  Hello List.

 I appreciate the work which is done around the mapserver. Right now I
 try to use the java mapscript interface and I got the following issue.**
 **

 I already got the java mapscript interface running. But right now it is
 only working with a 32-bit java version. My question is now, if there is
 also any support for 64-bit java version? 

 My runtime environment is:

 -  Windows 7 (64 bit)

 -  MS4W v3.0.2 packet (Mapscript 5.6.6.)

 -  Java Version: 1.7.0_0.4 (32-bit)

 I am looking forward to hear from you.

 Kind regards,

 JM

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



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



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


Re: [mapserver-users] OGR and MSSQL non-specific error

2012-02-29 Thread Tamas Szekeres
2012/2/28 Anzel, Phil - NRCS, Fort Collins, CO phil.an...@ftc.usda.gov

  Hi, Tamas,



 I believe there is at least one bug in the OGR code: the SRID is not
 properly retrieved from the underlying Sql Server 2008 database or its
 value is ignored, and therefore zero records are returned.




Probably the geometry_columns metadata table contains incorrect srid for
the NAV_STATE entry.




 I also note that all columns are returned. That is unfortunate, as that
 could potentially represent quite a bit of network traffic,


This is a subject of improvement in the mapserver ogr driver. OGR is now
capable to limit the fields by using OGR_L_SetIgnoredFields, but it hasn't
been utilized yet. We should also modify the OGR mssql driver to rely
on OGRFieldDefn::IsIgnored
just like for the sqlite driver. Added 2 tickets to implement this addition:
http://trac.osgeo.org/mapserver/ticket/4217
http://trac.osgeo.org/gdal/ticket/4534

Best regards,

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


Re: [mapserver-users] Re: mssql2008 plugin not working / failed to load dynamic library

2012-02-28 Thread Tamas Szekeres
You should specify valid credentials to access your database. Either by
specifying trusted_connection=yes of uid/pwd in the connection string.

Best regards,

Tamas



2012/2/28 juliap jap...@hotmail.com

 Thanks,

 So no that I decided to implement the layer with OGR connection, I get this
 error :

  [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT
 AUTHORITY\ANONYMOUS LOGON'.

 This does not happens when I  use shp2img to test my layer ...

 Any ideas?

 --
 View this message in context:
 http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4523298.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


Re: [mapserver-users] OGR and MSSQL non-specific error

2012-02-27 Thread Tamas Szekeres
2012/2/26 Anzel, Phil - NRCS, Fort Collins, CO phil.an...@ftc.usda.gov


 1. Note that I omitted the “tables=…” as it appears that naming a specific
 table would interfere with connection pooling if I’m using many layers
 drawing data from different tables. Do I understand the role of the
 “tables=…” incorrectly?

 **


Yes, it may be considered as being a different connection if the tables
section is used.



 **

 2. I added the explicit spatial filtering (STIntersects…). Is there a
 better way to do this?

 **


It seems to be a bit complicated this way. I think you should try simply
setting the layer name in the DATA section. In this case the spatial filter
is added automatically by the MapServer OGR driver.

Best regards,

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


Re: [mapserver-users] OGR and MSSQL non-specific error

2012-02-26 Thread Tamas Szekeres
Phil,

You should not specify the data section in the OGR layer definition unless
you would define and sql select statement preceding with the 'where'
keyword. The terms 'using unique' and 'using srid' are not meaningful for
the ogr driver these parameters are automatically retrieved from the
geometry_columns metadata table. You should however specify the table name
(and probably the geometry column name) in the connection string, something
like:

 CONNECTION ' MSSQL:server=xxx;database=;uid=xxx;pwd=xxx;tables=NAV_STATE'

or

 CONNECTION
' MSSQL:server=xxx;database=;uid=xxx;pwd=xxx;tables=NAV_STATE(ShapeGeometry)'


The difference in performance may be investigated by reading large number
of shapes at a given scale.
I'm also planning to improve the mapserver mssql plugin to read native
SqlGeometries, but I'm now working on a QGIS mssql driver right now.

Best regards,

Tamas



2012/2/26 Anzel, Phil - NRCS, Fort Collins, CO phil.an...@ftc.usda.gov

 All,

 I'm a bit confused: does MapServer 6.0.1 and OGR officially work with
 Sql Server 2008? I can see how use of the native SqlGeometry objects might
 be a bonus and would like to put it to the test.

 MSSQL access via the plugin works with this LAYER:
  LAYER
NAME 'States'  STATUS ON
PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END
CONNECTIONTYPE PLUGIN
PLUGIN ...\msplugin_mssql2008.dll'
CONNECTION 'server=xxx;database=;uid=xxx;pwd=xxx'
PROCESSING 'CLOSE_CONNECTION=DEFER'
DATA ShapeGeometry from NAV_STATE as base_table using unique OBJECTID
 using SRID=4269
TYPE POLYGON
CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END
  END

 This variant, changed to use OGR, fails:
  LAYER
NAME 'States'  STATUS ON
PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END
CONNECTIONTYPE OGR
CONNECTION 'MSSQL:server=xxx;database=;uid=xxx;pwd=xxx'
PROCESSING 'CLOSE_CONNECTION=DEFER'
DATA ShapeGeometry from NAV_STATE as base_table using unique OBJECTID
 using SRID=4269
TYPE POLYGON
CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END
  END

 Using shp2img (from MapServer 6.0.1 distribution for Win32/VS2010
 retrieved 2011-07-18) with -all_debug 5 yields:
  msOGRFileOpen(): OGR error.
  GetLayer(ShapeGeometry from NAV_STATE as base_table using unique OBJECTID
 using SRID=4269)
  failed for OGR connection `MSSQL:server=xxx;database=xxx;uid=xxx;pwd=xxx'.
 There is no further detail as to the failure.

 By way of reference,
 1. In mapserver-users Digest, Vol 49, Issue 58, Tamas Szekeres states
 BTW: With the current approach, connecting to mssql via OGR provides
 better performance than using the mssql plugin.
 2. Tamas also indicates that OGR can talk to MSSQL in [gdal-dev] OGR MS
 SQL Spatial driver has been added,
 http://www.osgeo.org/pipermail/gdal-dev/2010-September/026055.html.
 3. MapServer documentation at http://mapserver.org/input/vector/ogr.htmldoes 
 not list MSSQL as a data provider.
 4. MapServer documentation at 
 http://mapserver.org/input/vector/mssql.htmlstill shows use of the 
 msplugin_mssql2008.dll plugin.

 I must also wonder: has a measurable improvement been demonstrated by
 eliminating the plugin and going to the direct OGR to MSSQL connection?

 Yours in confusion,

 - Phil Anzel
   Contractor for USDA/NRCS
   ITC Web Soil Survey Team Member

 This electronic message contains information generated by the USDA solely
 for the intended recipients. Any unauthorized interception of this message
 or the use or disclosure of the information it contains may violate the law
 and subject the violator to civil or criminal penalties. If you believe you
 have received this message in error, please notify the sender and delete
 the email immediately.

 ___
 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] Re: mssql2008 plugin not working / failed to load dynamic library

2012-02-24 Thread Tamas Szekeres
Julia

According to your first letter (and by making sure you use mssql instead of
mysql) I think you should modify the mapfile including the correct
connection parameters.

Regarding to the issue of   the procedure entry point msSmallMalloc could
not be located in the
dynamic library libmap.dll this looks like an older version of libmap.dll
is used actually, which may not be compatible with the mssql plugin.

BTW: With the current approach, connecting to mssql via OGR provides better
performance than using the mssql plugin. This is because the plugin forces
to convert the geometries to WKB at server side with is less efficient than
retrieving the data in the native SqlGeometry/Geography serialization
format.


Best regards,

Tamas



2012/2/24 juliap jap...@hotmail.com

 Thanks for the suggestion,

 I was able to create a spatial index for the database using ogrinfo. I even
 exported information from sql server to a shapefile using the ogr2ogr
 utility.

 However; I want to be able to get data directly from a query in the
 mapfile,
 instead of having to create a shapefile. Right now this doesn't work when I
 use CONNECTIONTYPE OGR, and the same string that I used to connect for the
 previous examples.

 Also, I tried to use the mssql2008 plugin, and I used dependency walker and
 it seems that most of the required libraries cannot be found ...

 Do you have any idea of what the problem could be?


 --
 View this message in context:
 http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4504015.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


Re: [mapserver-users] Re: Clustering and tile clipping

2012-01-16 Thread Tamas Szekeres
Hi Wim,

Did you try the BUFFER setting to increase the search area during the
cluster creation?
For more information see: http://mapserver.org/mapfile/cluster.html

Best regards,

Tamas




2012/1/16 Wim Vanbelle wimvanbe...@gmail.com

 Does anyone have any working examples of how they implemented clustering
 without the tile clipping?

 Thanks.

 On 11 January 2012 10:00, Wim Vanbelle wimvanbe...@gmail.com wrote:

 Hi,

 I'm very happy that mapserver is now capable of server side clustering.
 However I wonder if it's possible to completely get rid of the tile
 clipping.

 Currently I've clustered a point layer with 44k points:

 CLUSTER
 MAXDISTANCE 100
 REGION ellipse

 END

 It is displayed with a simple image:
STYLE
 SYMBOL  small_shaded.png
 SIZE21
 OUTLINECOLOR0 0 0
 END

 However, when viewing this on google maps, the images are often clipped
 at the tile edges.

 I figured that I could solve this with mapcache:

  tileset name=ld
 sourceld/source
 cachedisk/cache
 gridg2/grid
 formatPNG/format
 metatile2 2/metatile
 metabuffer30/metabuffer
 expires3600/expires
 auto_expire2592000/auto_expire
   /tileset

 i've tried higher values for metatile and it helps a bit, but the problem
 simply shifts location. Also with higher values (eg 5 5 metatile) mapserver
 doesn't return the tiles on time for mapcache and I get gaps in my results.

 Would preseeding the data help with the timeouts? Any other solutions
 that I may try? The metadata parameter for tile_edge buffer only works with
 labels as far as i know.

 Thanks in advance, this issue has been troubling me for some time now :).

 Best regards,
 Wim



 ___
 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] - SQL Server 2008

2011-12-14 Thread Tamas Szekeres
Hi,

I think the OGR MSSQL Spatial driver would be a better choice than OGR ODBC
to connect to MS SQL Server 2008. You may however specify the driver in the
connection string explicitly. The default is driver={SQL Server} which may
not be sufficient in non Windows environments. You may probably use:

MSSQL:driver=FreeTDS;...

You may also require to use the latest SVN (trunk or branch-1-8) in order
to get it working.

Best regards,

Tamas



2011/12/13 scott...@free.fr

 Hi,

 I install and configure FreeTDS and unixodbc to connect to SQL Server
 2008. Everything is ok when I request database with tsql. But when I launch
 ogrinfo ODBC:user/pwd@DSN, I have this error message :
 [unixodbc] [driver manager] data source name not found and no default
 driver specified
 What's the solution, environment variable ... ?

 Thanks


 - Mail Original -
 De: Eduardo Kanegae eduardo.kane...@gmail.com
 À: MapServer Users mapserver-users@lists.osgeo.org
 Envoyé: Samedi 26 Novembre 2011 15h49:27 GMT +01:00 Amsterdam / Berlin /
 Berne / Rome / Stockholm / Vienne
 Objet: Re: [mapserver-users] - SQL Server 2008

 The mapfile won't change so much. Basically your layer will have layer
 name, type, connection type and then in connection param something
 like


 MSSQL:dsn=MY_DSN;server=(local);database=DBNAME_HERE;tables=myscheme.mytable;uid=USER_HERE;pwd=PWD_HERE
 mytable

 Check OGR docs for more info http://www.gdal.org/ogr/drv_mssqlspatial.html

 You might need freetds + unixodbc too

 http://www.sommarskog.se/mssqlperl/unix.html
 http://comments.gmane.org/gmane.comp.db.tds.freetds/13292

 In advance I can tell what I got: I gave up using default
 geometry/spatial types/functions from SQL 2008 - to slow, no official
 docs is available.

 To speed it up, I installed MsSqlSpatial lib (originally developed for
 SQL 2005 but also works for 2008) on SQL 2008 database + ODBC OGR
 driver on MapServer. And then spatial SQL speed gone 10-15 times over
 standard ms sql 2008 types



 Eduardo Patto Kanegae
 http://www.webmapit.com | @webmapit


 2011/11/26 scott...@free.fr
 
  Ok but I try to use it on Linux. Do you have some examples of mapfile to
 specify a sql 2008 connection ?
 
  - Mail Original -
  De: Eduardo Kanegae eduardo.kane...@gmail.com
  À: MapServer Users mapserver-users@lists.osgeo.org
  Envoyé: Samedi 26 Novembre 2011 00h00:11 GMT +01:00 Amsterdam / Berlin /
 Berne / Rome / Stockholm / Vienne
  Objet: Re: [mapserver-users] - SQL Server 2008
 
  I'm sure about 2008 but 2000/2005 you can connect using FreeTDS client
  libs - and probably an ODBC connection.
 
  I also plan to publish more experiments using 2008/2005
  http://blog.webmapit.com/2011/11/ms-sql-2008-spatial-experiments.html
 
  regards
 
  Eduardo Patto Kanegae
  http://www.webmapit.com | @webmapit
 
 
  2011/11/25 scott...@free.fr
  
   Hi,
  
   I would like to create a mapfile with SQL Server 2008 connection but i
 don't know how to configure it. With Windows, the driver is mssql2008.dll
 but my server run on Linux. How to do it ?
   When MapServer is running with fcgid mode, what's the best
 configuration ? Is it possible to have some examples of fcgid.conf ?
  
   Thanks
   ___
   mapserver-users mailing list
   mapserver-users@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/mapserver-users
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
 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] layerObj queryByPoint problem

2011-11-24 Thread Tamas Szekeres
Hi,

The query with this mapfile works for me. What is the error message
specifically? Could you provide your C# code sample?

Best regards,

Tamas



2011/11/24 kirill bogdanov bogdan...@gmail.com

 Hi, i have a problem with queryByPoint as well as queryByRect in layer
 class
 - they always return MS_FAILURE also as in mapObj class.
 I am coding in c# for desktop not for web.
 And I have a template in class of layer. Here is my files:
 map file

 MAP
  EXTENT -180 -183.1126335 180 176.8873665
  FONTSET ../fonts/fonts.list
  IMAGECOLOR 255 255 255
  IMAGETYPE png24
  NAME MS
  SHAPEPATH ../data
  SIZE 1024 1024
  STATUS ON
  SYMBOLSET ../symbols/symbols35.sym
  TRANSPARENT TRUE
  UNITS METERS

  OUTPUTFORMAT
NAME png24
MIMETYPE image/png
DRIVER AGG/PNG
EXTENSION png
IMAGEMODE RGBA
TRANSPARENT TRUE
  END # OUTPUTFORMAT

  PROJECTION
proj=merc
lon_0=0
lat_ts=0
x_0=0
y_0=0
a=6378137
b=6378137
units=m
no_defs
  END # PROJECTION
  LEGEND
IMAGECOLOR 255 255 255
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
  SIZE MEDIUM
  COLOR 0 0 0
  OFFSET 0 0
  SHADOWSIZE 1 1
  TYPE BITMAP
END # LABEL
STATUS OFF
  END # LEGEND

  QUERYMAP
COLOR 255 255 0
SIZE -1 -1
STATUS OFF
STYLE HILITE
  END # QUERYMAP

  SCALEBAR
COLOR 0 0 0
IMAGECOLOR 255 255 255
INTERVALS 4
LABEL
  SIZE MEDIUM
  COLOR 0 0 0
  OFFSET 0 0
  SHADOWSIZE 1 1
  TYPE BITMAP
END # LABEL
SIZE 200 3
STATUS OFF
UNITS MILES
  END # SCALEBAR

  WEB
  END # WEB

 LAYER
DATA \\factinf\filestorage\dc4e2278-8b12-4b80-a6dc-742ce774d1aa\world
EXTENT -180 -89.9 180 83.674733
NAME \\factinf\filestorage\dc4e2278-8b12-4b80-a6dc-742ce774d1aa
PROJECTION
  proj=longlat
  ellps=WGS84
  datum=WGS84
  no_defs
END # PROJECTION
STATUS ON
TILEITEM location
TOLERANCE 100
TYPE POLYGON
UNITS METERS
CLASS
  NAME The World
  STYLE
ANGLE 0
COLOR 0 0 0
OFFSET 0 0
  END # STYLE
  TEMPLATE c:\ms4w\apps\tutorial\htdocs\template.html
END # CLASS
FEATURE
  POINTS
  -92.22255 14.519233
  -92.1567 14.619833
  -92.1863 14.808033
  -92.111 15.0177
  -92.1379 15.0876
  -92.1567 15.105533
  -92.2347 15.123467
  -92.28845 15.170067
  -92.2427 15.268633
  -92.0787 15.5052
  -91.8905 15.7633
  -91.6862 16.075133
  -91.62435 16.0823
  -91.33665 16.073367
  -90.70745 16.084133
  -90.4977 16.082333
  -90.46545 16.098467
  -90.45735 16.188067
  -90.39285 16.290233
  -90.3794 16.3655
  -90.3794 16.395967
  -90.41975 16.421067
  -90.6617 16.5089
  -90.6913 16.535767
  -90.7128 16.655867
  -90.77735 16.720367
  -90.89565 16.790267
  -91.11075 16.865533
  -91.20755 16.9193
  -91.36345 17.112867
  -91.36345 17.1469
  -91.33925 17.166633
  -91.25325 17.180967
  -90.9467 17.209633
  -90.9494 17.499967
  -90.96825 17.7455
  -90.9521 17.774167
  -90.91985 17.783133
  -90.39555 17.772367
  -89.76365 17.758033
  -89.2017 17.7688
  -89.1316 17.771967
  -89.0816 17.7742
  -89.0985 17.556067
  -89.12545 17.1805
  -89.1373 16.810567
  -89.15585 16.4474
  -89.19635 16.012267
  -89.19295 15.9628
  -89.1643 15.933567
  -88.9506 15.905167
  -88.9213 15.8822
  -88.88855 15.874167
  -88.8472 15.878767
  -88.81445 15.878767
  -88.774 15.863833
  -88.68785 15.78
  -88.6792 15.754733
  -88.68785 15.7111
  -88.68095 15.700767
  -88.6568 15.691567
  -88.61545 15.690433
  -88.5948 15.698467
  -88.59305 15.7065
  -88.6103 15.724867
  -88.6103 15.738667
  -88.58275 15.771967
  -88.56375 15.783467
  -88.53105 15.783467
  -88.4785 15.771967
  -88.45265 15.7685
  -88.4096 15.
  -88.38545 15.778833
  -88.351 15.767367
  -88.31135 15.727167
  -88.23725 15.691567
  -88.3148 15.644467
  -88.51955 15.3572
  -88.64485 15.2584
  -88.88475 15.135133
  -89.0299 15.092333
  -89.18425 15.038367
  -89.2041 15.0231
  -89.21175 14.993533
  -89.198 14.943633
  -89.2576 14.8805
  -89.2698 14.828533
  -89.2652 14.790867
  -89.1781 14.714467
  -89.1506 14.620733
  -89.1598 14.5902
  -89.1934 14.577967
  -89.2759 14.572867
  -89.29275 14.565733
  -89.3019 14.5525
  -89.2933 14.5114
  -89.2863 14.478067
  -89.47335 14.436067
  -89.57965 14.398
  -89.60135 14.369133
  -89.52255 14.3114
  -89.5895 14.245767
  -89.6545 14.231333
  -89.68795 14.201167
  -89.7569 14.048933
  -89.79035 14.016133
  -90.00105 13.976767
  -90.02465 13.962333
  -90.03255 13.934767
  -90.03255 13.901967
  -90.0424 13.887533
  -90.10145 13.891467
  -90.12705 13.878333

Re: [mapserver-users] MapServer x64 with Oracle x64

2011-10-21 Thread Tamas Szekeres
Richard,

You should try using the x64 version of instant client 11.1.0.7.0  (
http://www.oracle.com/technetwork/topics/winx64soft-089540.html) . This
version has been used to compile the plugin.

Best regards,

Tamas



2011/10/21 Richard Suematsu richard.suema...@syncadd.com

 Hi,

 ** **

 I’m trying to use MapServer on a Windows 2k8 x64 server with 64-bit
 Oracle.  The MapServer I’m using was downloaded from Tamas (gisinternals).
 MapServer crashes every time I run it.  Everything works fine when I publish
 from a shapefile.  But when I try to pull geometry out of Oracle, the exe
 crashes.  I’m using the plugin.

 ** **

 I checked the MapServer and Oracle dlls with dumpbin and everything is
 64-bit.  I checked the mapserv.exe with DependancyWalker and everything
 looks ok.  Actually it flags IESHIM as a 32-bit but I don’t think it’s a
 problem.  The plugin is 64-bit.

 ** **

 I don’t know what’s wrong.  I’ve recreated this on a Win7 64-bit machine
 with the same issue, so it’s consistent.  Anybody out there running
 MapServer with 64-bit Oracle?  Any ideas?

 ** **

 Thanks,

 Rich


 --

 Confidentiality Notice: This e-mail message, including any attachments, is 
 for the sole use of the

 intended recipient(s) and may contain confidential and privileged 
 information. Unauthorized

 review, use, disclosure or distribution is prohibited. If you are not the 
 addressee indicated in this

 message kindly notify the sender by reply e-mail and destroy all copies of 
 the original message.

 ___
 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] MapServer x64 with Oracle x64

2011-10-21 Thread Tamas Szekeres
Mike,

As far as I remember both GDAL and MapServer contains the x64 versions of
the OCI plugins. I'll require to review the comments accordingly.

Best regards,

Tamas



2011/10/21 Smith, Michael ERDC-CRREL-NH michael.sm...@usace.army.mil

  Rich,

  I think the oracle and sde plugins on gisinternals are only for the win32
 mapserver packages. There is this note in the build information. Oracle x64
 is only listed with GDAL/OGR, not with MapServer from the build information
 I looked at (
 http://vbkto.dyndns.org/sdk/PackageInfo.aspx?file=release-1600-x64-gdal-mapserver.zip
 )

   Note: When using the Oracle and SDE plugins (Win32 packages only) be
 sure that the client libraries have been installed in the environment
 previously.
  Mike



   From: Richard Suematsu richard.suema...@syncadd.com
 Date: Thu, 20 Oct 2011 15:48:29 -1000
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] MapServer x64 with Oracle x64

   Hi,

 ** **

 I’m trying to use MapServer on a Windows 2k8 x64 server with 64-bit
 Oracle.  The MapServer I’m using was downloaded from Tamas (gisinternals).
 MapServer crashes every time I run it.  Everything works fine when I publish
 from a shapefile.  But when I try to pull geometry out of Oracle, the exe
 crashes.  I’m using the plugin.

 ** **

 I checked the MapServer and Oracle dlls with dumpbin and everything is
 64-bit.  I checked the mapserv.exe with DependancyWalker and everything
 looks ok.  Actually it flags IESHIM as a 32-bit but I don’t think it’s a
 problem.  The plugin is 64-bit.

 ** **

 I don’t know what’s wrong.  I’ve recreated this on a Win7 64-bit machine
 with the same issue, so it’s consistent.  Anybody out there running
 MapServer with 64-bit Oracle?  Any ideas?

 ** **

 Thanks,

 Rich


 --

 Confidentiality Notice: This e-mail message, including any attachments, is 
 for the sole use of the

 intended recipient(s) and may contain confidential and privileged 
 information. Unauthorized

 review, use, disclosure or distribution is prohibited. If you are not the 
 addressee indicated in this

 message kindly notify the sender by reply e-mail and destroy all copies of 
 the original message.
  ___ mapserver-users mailing
 list mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


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


Re: [mapserver-users] Clustering based on a classified column

2011-10-19 Thread Tamas Szekeres
Hi Stephan,

I'm not sure exactly what you would like to achieve. The GROUP setting
specifies which features may belong to the same cluster. This setting can be
an expression (including the feature attributes) which evaluates to a string
value. Features with different group string value are not used within the
same cluster.

The FILTER setting can also be an expression (including the feature
attributes or the aggregated attributes) which evaluates to a boolean value.
This boolean determines whether the particular shapes should be filtered out
or not in the clustering process.

You can continue to use the CLASSITEM setting or class EXPRESSION (including
the aggregated attributes, like Cluster:FeatureCount in the expressions) to
control which class is used to display a particular clustered shape.

What do you mean by validation in the GROUP or FILTER expressions?


Best regards,

Tamas




2011/10/19 Stephan Holl stephan.h...@intevation.de

 Dear mapservers,

 I am playing arround with the CLUSTER-directive and I am going fine.

 Though there are some questions left I cannot answer by myself and the
 documentation.

 Is it possible to cluster a POINT layer based on a specific attribute
 columns? THis column is the  basis of the classification of the layer.

 What I want to achive is adding a label to each CLASS if the
 Cluster:FeatureCount is  1.

 The docs do not make it clear for me if CLUSTER:GROUP or CLUSTER:FILTER
 is the correct stuff. Neither of them work during tests.

 Could someone tell me if this could be done with the CLUSTERing?

 And the bonus-question: if this is possible, are validation-pattern
 taken into account within GROUP or FILTER?

 Looking forward to your suggestions.

 TIA

 Best regards

Stephan

 --
 Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663
 Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
 Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

 ___
 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] Expressions on Cluster Objects

2011-10-12 Thread Tamas Szekeres
David,

I think that option should indeed work in the class expressions. Do you have
a more complete example (map file)?

Best regards,

Tamas



2011/10/12 Fawcett, David (MPCA) david.fawc...@state.mn.us

 I have been playing around with the new cluster functionality a little bit.

 I am looking for way to classify the clusters based on their feature
 counts.  E.g. larger circles for clusters of  10 features and even larger
 circles for clusters of  100 features.

 Because Cluster:FeatureCount returns a string, the below expression can
 evaluate to True for values like 109

 ([Cluster:FeatureCount]  11)

 Does anyone have any suggestions?

 Maybe I am just misusing Clusters...

 Thanks,

 David.

 ___
 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] UNION raster layers returns blank image

2011-10-03 Thread Tamas Szekeres
Hi,

The union layer approach is working only for the vector based layers at the
moment.

Best regards,

Tamas



2011/10/3 Travis Kirstine traviskirst...@gmail.com

 Hi All,

 I have been having some issues using the UNION option in the mapfile.
 I'm trying to set up a WMS server with several source raster layers
 and provide them all as a single union layer to the client.   I don't
 want the source layers visible in the GetCapabilities, only the union
 layer so I have been using a combination of the own_enable_request and
 CONNECTIONTYPE UNION.  It seems to work in the GetCapabilites, only
 the union layer appears however only blank images are returned from
 the GetMap requests.  The layers portion of my mapfile is below, I
 have set the ows_enable_request * in the WEB METADATA.  Any help
 would be much appreciated


# York Region 2009 - Union
LAYER
NAME 0937york_union
TYPE RASTER
CONNECTIONTYPE UNION
CONNECTION

 0937york_1km_mstif,0937york_5km_mstif,0937york_10km_mstif,0937york_overall_mstif
METADATA
wms_title York Region UNION
wms_extent 594999 4842001 64 4918001
END
CLASS
END
PROJECTION
init=epsg:26917
END
END
# York Region 2009 - 15cm
LAYER
NAME 0937york_1km_mstif
TYPE RASTER
TILEINDEX /var/local/data/0937YORK_1km_mstif/york_1km_mstindex
TILEITEM location
MAXSCALEDENOM 7500
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END
LAYER
NAME 0937york_5km_mstif
TYPE RASTER
TILEINDEX /var/local/data/0937YORK_5km_mstif/york_5km_mstindex
TILEITEM location
MINSCALEDENOM 7500
MAXSCALEDENOM 4
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END
LAYER
NAME 0937york_10km_mstif
TYPE RASTER
TILEINDEX /var/local/data/0937YORK_10km_mstif/york_10km_mstindex
TILEITEM location
MINSCALEDENOM 4
MAXSCALEDENOM 40
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END
LAYER
NAME 0937york_overall_mstif
TYPE RASTER
DATA
 /var/local/data/0937YORK_overall_mstif/0937YORK_100m_overall.tif
MINSCALEDENOM 40
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END


 Regards
 ___
 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] UNION raster layers returns blank image

2011-10-03 Thread Tamas Szekeres
The union layer is a vector layer, which provides the union of the set of
features from multiple layers.

The functionality you mention would probably require to add a new layer type
which would have effect on the drawing side of the rendering chain (ie. in
mapdraw.c).
Not sure if this addition would be on the roadmap, unless someone would take
over to contribute or support to implement this. A separate RFC would also
be required.

Best regards,

Tamas




2011/10/3 Travis Kirstine traviskirst...@gmail.com

 Tamas,

 Thanks for your response, do you know if this is on the roadmap?

 Regards

 On 3 October 2011 14:01, Tamas Szekeres szeker...@gmail.com wrote:
  Hi,
  The union layer approach is working only for the vector based layers at
 the
  moment.
  Best regards,
  Tamas
 
 
  2011/10/3 Travis Kirstine traviskirst...@gmail.com
 
  Hi All,
 
  I have been having some issues using the UNION option in the mapfile.
  I'm trying to set up a WMS server with several source raster layers
  and provide them all as a single union layer to the client.   I don't
  want the source layers visible in the GetCapabilities, only the union
  layer so I have been using a combination of the own_enable_request and
  CONNECTIONTYPE UNION.  It seems to work in the GetCapabilites, only
  the union layer appears however only blank images are returned from
  the GetMap requests.  The layers portion of my mapfile is below, I
  have set the ows_enable_request * in the WEB METADATA.  Any help
  would be much appreciated
 
 
 # York Region 2009 - Union
 LAYER
 NAME 0937york_union
 TYPE RASTER
 CONNECTIONTYPE UNION
 CONNECTION
 
 
 0937york_1km_mstif,0937york_5km_mstif,0937york_10km_mstif,0937york_overall_mstif
 METADATA
 wms_title York Region UNION
 wms_extent 594999 4842001 64 4918001
 END
 CLASS
 END
 PROJECTION
 init=epsg:26917
 END
 END
 # York Region 2009 - 15cm
 LAYER
 NAME 0937york_1km_mstif
 TYPE RASTER
 TILEINDEX /var/local/data/0937YORK_1km_mstif/york_1km_mstindex
 TILEITEM location
 MAXSCALEDENOM 7500
 OFFSITE 0 0 0
 METADATA
 ows_enable_request * !GetCapabilities
 END
 PROJECTION
 init=epsg:26917
 END
 END
 LAYER
 NAME 0937york_5km_mstif
 TYPE RASTER
 TILEINDEX /var/local/data/0937YORK_5km_mstif/york_5km_mstindex
 TILEITEM location
 MINSCALEDENOM 7500
 MAXSCALEDENOM 4
 OFFSITE 0 0 0
 METADATA
 ows_enable_request * !GetCapabilities
 END
 PROJECTION
 init=epsg:26917
 END
 END
 LAYER
 NAME 0937york_10km_mstif
 TYPE RASTER
 TILEINDEX /var/local/data/0937YORK_10km_mstif/york_10km_mstindex
 TILEITEM location
 MINSCALEDENOM 4
 MAXSCALEDENOM 40
 OFFSITE 0 0 0
 METADATA
 ows_enable_request * !GetCapabilities
 END
 PROJECTION
 init=epsg:26917
 END
 END
 LAYER
 NAME 0937york_overall_mstif
 TYPE RASTER
 DATA
  /var/local/data/0937YORK_overall_mstif/0937YORK_100m_overall.tif
 MINSCALEDENOM 40
 OFFSITE 0 0 0
 METADATA
 ows_enable_request * !GetCapabilities
 END
 PROJECTION
 init=epsg:26917
 END
 END
 
 
  Regards
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

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


Re: [mapserver-users] Multiple styles in STYLEITEM

2011-07-28 Thread Tamas Szekeres
Hi Gleb,

You may probably encapsulate multiple styles in a CLASS definition.

Best regards,

Tamas



2011/7/28 Gleb Kosolapov thunderl...@yandex.ru

 Hi, everyone!

 I try to use variable styles for objects in Oracle DB.
 To show railroads I have to use styles like that:
 STYLE
  COLOR 102 102 102
  WIDTH 4.0
END
STYLE
  COLOR 255 255 255
  WIDTH 2.0
  LINECAP BUTT
  PATTERN 8 12 END
END

 If I store it in table field MS_STYLE I must define this layer:
LAYER
NAME 'railroad'
STATUS ON
TYPE LINE
PROJECTION
init=epsg:4326
END
CONNECTIONTYPE oraclespatial
CONNECTION ***/***@
DATA SHAPE FROM FGIS_DATA USING SRID 8307
FILTER (CATEGORYID = 41 and GTYPE in (2,6))

STYLEITEM MS_STYLE
CLASS
NAME 'railroad'
END

PROCESSING CLOSE_CONNECTION=DEFER
END

 But MapServer reads only the first definition of STYLE (without pattern).
 Is there another way to make it work?

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

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


Re: [mapserver-users] Multiple styles in STYLEITEM

2011-07-28 Thread Tamas Szekeres
I mean you can place class definitions to the database as style strings
according to:
http://mapserver.org/development/rfc/ms-rfc-61.html#supported-style-representations

Best regards,

Tamas



2011/7/28 Gleb Kosolapov thunderl...@yandex.ru

 Yes, I can  encapsulate multiple styles in a CLASS definition, but I need
 to take it from database.

 28.07.2011, 16:07, Tamas Szekeres szeker...@gmail.com:

 Hi Gleb,

 You may probably encapsulate multiple styles in a CLASS definition.

 Best regards,

 Tamas



 2011/7/28 Gleb Kosolapov thunderl...@yandex.ru

 Hi, everyone!

 I try to use variable styles for objects in Oracle DB.
 To show railroads I have to use styles like that:
 STYLE
  COLOR 102 102 102
  WIDTH 4.0
END
STYLE
  COLOR 255 255 255
  WIDTH 2.0
  LINECAP BUTT
  PATTERN 8 12 END
END

 If I store it in table field MS_STYLE I must define this layer:
LAYER
NAME 'railroad'
STATUS ON
TYPE LINE
PROJECTION
init=epsg:4326
END
CONNECTIONTYPE oraclespatial
CONNECTION ***/***@
DATA SHAPE FROM FGIS_DATA USING SRID 8307
FILTER (CATEGORYID = 41 and GTYPE in (2,6))

STYLEITEM MS_STYLE
CLASS
NAME 'railroad'
END

PROCESSING CLOSE_CONNECTION=DEFER
END

 But MapServer reads only the first definition of STYLE (without pattern).
 Is there another way to make it work?

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


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


Re: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image

2011-06-23 Thread Tamas Szekeres
That would be a good idea to define a feature for the legend icon per class.
We should also be able to define a custom text attribute so that we could
customize the text displayed for the annotation layers. I assume this would
apply for a new RFC in practice.

Best regards,

Tamas




2011/6/22 Lime, Steve D (DNR) steve.l...@state.mn.us

 What about allowing the definition of a geometry (like inline features)
 using percentages. The defaults
 would be as is but could be overridden, kinda like the LEGENDICON class
 parameter. We could add a
 LEGENDFEATURE parameter... That would give folks a ton of control and by
 specifying coordinates in percentages
 things would scale.

 Steve

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Morissette
 Sent: Thursday, June 16, 2011 7:39 AM
 To: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Re: Polygon layer with no fill shows line
 thumbnail in the legend image

 Personally, I do not feel strongly either way, other than being hesitant
 to change something that's been in place for 8 years. Perhaps an option
 could be added to control the type of icon to generate?

 On 11-06-16 07:12 AM, Tamas Szekeres wrote:
  Any update on this one?
 
  Tamas
 
 
 
  2011/5/28 Tamas Szekeres szeker...@gmail.com mailto:
 szeker...@gmail.com
 
  Folks,
 
  According to a client's report, the current behaviour of drawing the
  legend images may be confusing, as the polygon layer with no fill
  shows line thumbnail (zigzag) in the legend image.
  I've been tracking down the changes in SVN and came to the conlusion
  that this behaviour has been introduced with
  http://trac.osgeo.org/mapserver/changeset/2172 8 years ago.
 
  I'd be curious to know if this approach is satisfactory for all
  users, or would it be more convenient to show an empty rectangle in
  these cases? I would personally be in favour of drawing a rectangle
  in order to make it clear that the layer type is polygon and not
  line. Or is there any other reason that I'm not aware of, which
  makes the current approach more compelling?
 
 
  Best regards,
 
  Tamas
 
 
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users


 --
 Daniel Morissette
 http://www.mapgears.com/
 Provider of Professional MapServer Support since 2000

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


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


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


Re: [mapserver-users] PHP-Mapscript - clusterObj ?

2011-06-20 Thread Tamas Szekeres
Chris,

clusterObj should not be constructed from scratch, it is an existing member
of layerObj. Not sure how is that working in PHP, however.


Best regards,

Tamas




2011/6/20 Chris Green chris.gr...@ibstv.co.uk

 Hi list

 ** **

 I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have
 been trying to get clustering to work with Mapscript. Actually it works fine
 when using a mapfile very similar to the ‘Clustering Railway Stations’
 example given in the 6.0 documentation if I use the mapfile to generate a
 WMS layer without Mapscript. However using the same mapfile I can’t get the
 clustered output to appear with Mapscript when I try the usual construction
 along the lines of:

 ** **

 $map = ms_newMapobj(/var/www/vhosts/mysite/httpdocs/test.map);

 $layer1=$map-getLayerByName(test1);

 ..

 ..

 ..

 $image=$map-draw();

 $image_url=$image-saveWebImage();

 ** **

 This structure works on a non-clustered layer in the same mapfile. I can
 see in the documentation for MS RFC 69 that the idea is to use a new
 Mapscript object called clusterObj, but I can’t find any information on how
 to construct a clusterObj and several hours of trial and error yesterday
 didn’t get me very far. Can someone tell me how I should set up and use
 clusterObj?

 ** **

 ** **

 Chris  

 ** **

 ** **

 ___
 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] Re: Polygon layer with no fill shows line thumbnail in the legend image

2011-06-16 Thread Tamas Szekeres
Any update on this one?

Tamas



2011/5/28 Tamas Szekeres szeker...@gmail.com

 Folks,

 According to a client's report, the current behaviour of drawing the legend
 images may be confusing, as the polygon layer with no fill shows line
 thumbnail (zigzag) in the legend image.
 I've been tracking down the changes in SVN and came to the conlusion that
 this behaviour has been introduced with
 http://trac.osgeo.org/mapserver/changeset/2172 8 years ago.

 I'd be curious to know if this approach is satisfactory for all users, or
 would it be more convenient to show an empty rectangle in these cases? I
 would personally be in favour of drawing a rectangle in order to make it
 clear that the layer type is polygon and not line. Or is there any other
 reason that I'm not aware of, which makes the current approach more
 compelling?


 Best regards,

 Tamas



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


Re: [mapserver-users] CLUSTER and GetFeatureInfo

2011-06-02 Thread Tamas Szekeres
Luca,

This is in trunk only. See the related ticket at:
http://trac.osgeo.org/mapserver/ticket/3873

Best regards,

Tamas



2011/6/2 luca.casagra...@gmail.com luca.casagra...@gmail.com

 2011/6/1 Tamas Szekeres szeker...@gmail.com:
 
  2011/6/1 Luca Casagrande luca.casagra...@gmail.com
 
  Hello everybody,
  I have a working demo with the new CLUSTER class working fine. What I'd
  like
  to do is to get the list of the values for a specific attribute, for
 every
  feature in the cluster. Is this possible, for example, with a
  GetFeatureInfo
  request?
 
 
  Luca,
 
  If you specify the CLUSTER_GET_ALL_SHAPES processing option then all the
  features making up the cluster are returned instead of a single feature
 at
  the same clustered location.
 
  Best regards,
 
  Tamas

 Thanks Tamas.
 Is this feature currently only in trunk or it's fine with 6.0.0?

 Ciao
 L.

 --
 Luca Casagrande
 twitter: lucacasagrande

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


[mapserver-users] Polygon layer with no fill shows line thumbnail in the legend image

2011-05-28 Thread Tamas Szekeres
Folks,

According to a client's report, the current behaviour of drawing the legend
images may be confusing, as the polygon layer with no fill shows line
thumbnail (zigzag) in the legend image.
I've been tracking down the changes in SVN and came to the conlusion that
this behaviour has been introduced with
http://trac.osgeo.org/mapserver/changeset/2172 8 years ago.

I'd be curious to know if this approach is satisfactory for all users, or
would it be more convenient to show an empty rectangle in these cases? I
would personally be in favour of drawing a rectangle in order to make it
clear that the layer type is polygon and not line. Or is there any other
reason that I'm not aware of, which makes the current approach more
compelling?


Best regards,

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


Re: [mapserver-users] Union Layers and GetLegendGraphic

2011-05-19 Thread Tamas Szekeres
Keith,

The idea looks promising. Which source layer should be used to copy the
styles?
In case if the source layer contains multiple classes (with expressions,
classitem etc.), the actual feature may be required to select the class to
be used.

Best regards,

Tamas


2011/5/19 Keith Moss keith.m...@landgate.wa.gov.au

  Hi all,

 Just noticed an issue with the new 'UNION' layer type in MapServer 6.

 With 'STYLEITEM AUTO' set the styles are inherited for GetMap requests but,
 it seems, not for GetLegendGraphic requests. Giving the UNION layer a copy
 of the styles for the source layers works, but obviously this is exactly
 ideal. Just wondering if this is on anyone's to implement list?

 cheers

 __
  Keith Moss
 Satellite Remote Sensing Services
 Operations
 Landgate
 65 Brockway Road, FLOREAT WA 6014
 PO Box 741 Wembley WA 6913
 Ph. (08) 9387 0332 | Fx. (08) 9383 7142
 keith.m...@landgate.wa.gov.au
 www.landgate.wa.gov.au

 This e-mail and any files transmitted with it are intended only for the use
 of the addressee(s). It may contain information that is confidential and
 privileged, in which case neither is intended to be waived or lost by
 mistaken delivery to you. If you are not an intended recipient, any use,
 interference with, disclosure, distribution or copying of this material is
 unauthorised and prohibited. If you receive this e-mail in error, please
 notify the sender by return e-mail and delete the message and any
 attachments from your system. Unless specifically indicated, this e-mail
 does not constitute formal advice or commitment by the sender or the Western
 Australian Land Information Authority (Landgate). Information in this
 message not relating to the official business of Landgate shall be
 understood as neither given nor endorsed by it. It is your responsibility to
 check any attachments for viruses and defects before opening or sending them
 on. Landgate’s liability is limited to re-supplying affected attachments.

 ___
 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] Question on rfc 86

2011-05-16 Thread Tamas Szekeres
Hi Daniel,

Good point. I've just been waiting for someone more proficient than me, who
confirms that this approach makes sense ;-)

Best regards,

Tamas


2011/5/16 Daniel Morissette dmorisse...@mapgears.com

 On 11-05-14 03:21 PM, Tamas Szekeres wrote:

 However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could
 indeed be taken into account when accessing the source layers, by using
 a minor change.


 If that's not the case already then I think MINSCALEDENOM, MAXSCALEDENOM
 from the source layer should be taken into account by default with UNION
 layers. i.e. when one sets up a layer with min/max scale, it is normally
 because the data is not appropriate for use at other scales, so I see no
 reason to expose via in the union layer outside of those scales either.

 My 0.02$

 --
 Daniel Morissette
 http://www.mapgears.com/
 Provider of Professional MapServer Support since 2000


 ___
 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] Question on rfc 86

2011-05-15 Thread Tamas Szekeres
Hi Josh,

The UNION layer doen't remove the source layers it refers to, so those would
be displayed in the legend as well. Would this provide the expected result
even so?

Best regards,

Tamas



2011/5/15 Josh Hevenor jheve...@rogers.com

  Thanks Tamas,

 The legend is custom build by mapscript and it's a feature of the app that
 it shows the out of scale layers. I could customize it to group layers that
 are essentially the same thing if there was a need for it, but I figured I'd
 see if this new feature would do that for me for free when I upgrade to ms6.


 If the UNION layer respected the source layers {min|max}scaledenom settings
 that would work for me. Are there any other ways to have a single layer
 provide more detail when zoomed in? Just curious.

 Josh


 On 5/14/2011 3:21 PM, Tamas Szekeres wrote:

 Josh,

 The union layer always retrieve all features from the source layers
 regardless of their visibility. This is because the source layers are hidden
 in most cases (STATUS OFF) to avoid the duplication of the features drawn.
 However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could indeed
 be taken into account when accessing the source layers, by using a minor
 change.

 BTW: How the legend is drawn in your case? As far as I know mapserver draws
 only the layers in the scale range by default.

 Best regards,

 Tamas



 2011/5/14 Josh Hevenor jheve...@rogers.com

 This may or may not be relevant but reading RFC 68 got me wondering.

 I have an application that has shape file data for lakes. There are
 different shapefiles for data with higher accuracy that are used with
 scale ranges so that only one is drawn at a time.  Specifically
 something like lakes_1_1m, lakes_1_250k, lakes_1_50k.

 I'm really looking for a way to show one LAKES layer in the application
 legend instead of 3 layers, two of which are always out of scale. Can or
 should I use a UNION layer to connect these layers? What other approach
 should I consider?

 Thanks for the advice,

 Josh

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




 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.449 / Virus Database: 271.1.1/3637 - Release Date: 05/14/11 
 06:34:00



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


Re: [mapserver-users] Question on rfc 86

2011-05-14 Thread Tamas Szekeres
Josh,

The union layer always retrieve all features from the source layers
regardless of their visibility. This is because the source layers are hidden
in most cases (STATUS OFF) to avoid the duplication of the features drawn.
However the desired scale range (MINSCALEDENOM, MAXSCALEDENOM) could indeed
be taken into account when accessing the source layers, by using a minor
change.

BTW: How the legend is drawn in your case? As far as I know mapserver draws
only the layers in the scale range by default.

Best regards,

Tamas



2011/5/14 Josh Hevenor jheve...@rogers.com

 This may or may not be relevant but reading RFC 68 got me wondering.

 I have an application that has shape file data for lakes. There are
 different shapefiles for data with higher accuracy that are used with
 scale ranges so that only one is drawn at a time.  Specifically
 something like lakes_1_1m, lakes_1_250k, lakes_1_50k.

 I'm really looking for a way to show one LAKES layer in the application
 legend instead of 3 layers, two of which are always out of scale. Can or
 should I use a UNION layer to connect these layers? What other approach
 should I consider?

 Thanks for the advice,

 Josh

 ___
 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] Mapfile syntax highlighting

2011-05-04 Thread Tamas Szekeres
Hi All,

Could someone point me to a working syntax file for editing mapfiles in
SciTE?

Best regards,

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


Re: [mapserver-users] CLUSTER object with GROUPs and FILTERs

2011-05-04 Thread Tamas Szekeres
Christy,

The GROUP expression evaluates to a string which controls that which
features are being negotiated. Only the neighbouring features belonging to
the same group are added to the same cluster. On the contrary the filter
evaluates to a boolean expression which determines whether the feature
should be omitted in the clustering operation.

Best regards,

Tamas



2011/5/4 Christy Nieman cnie...@dmsolutions.ca

 Hello,

 I'm trying to understand the new CLUSTER object.  I have a feeling that I'm
 just expecting things to work differently than they do, but wanted to
 confirm.

 If you have a CLUSTER object with a GROUP expression in it (e.g. GROUP (
 '[type]' = 'car' ), the Cluster:Group feature attribute evaluates to true or
 false.  Makes sense.  Now, is there a way to make it so that a grouping by
 attribute value happens?  i.e. if I have data with vehicle types in it and
 want the data to be clustered by type - car, truck and van for example - is
 there a way to do this without having three layers where each one has a
 GROUP expression for each vehicle type?

 Thanks,
 Christy
 ___
 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] Mapfile syntax highlighting

2011-05-04 Thread Tamas Szekeres
Thomas,

Thanks for the input, it was really helpful.

Best regards,

Tamas



2011/5/4 Thomas Gratier osgeo.mailingl...@gmail.com

 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] MapScript - ZoomToPrevious Next Extents

2011-05-03 Thread Tamas Szekeres
Hi,

You must save the extents and then use map.setExtent to select one according
to the user actions. There's no builtin mechanism in MapServer to store the
history of extents internally.

Best regards,

Tamas



2011/5/3 Mir Hashmi tohas...@gmail.com

 Hello

 I am working on a desktop application using .net mapscript_csharp.dll.
 Anyone please guide me towards achieving Zoom To Previous
  Zoom To Next extents.

 Is it that I should save previous actions  extents? or is there some other
 way to do it?

 Please suggest some examples or code.

 Kind regards.
 Mir Hashmi



 ___
 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] TYPE UNION and STYLEITEM

2011-05-03 Thread Tamas Szekeres
2011/5/3 Christy Nieman cnie...@dmsolutions.ca


 However, if I have styling in the source layers (i.e. layer_1_for_union and
 layer_2_for_union) and use STYLEITEM AUTO in the union layer, the two
 source layers must have STATUS DEFAULT for anything to show up (which, I
 think, causes them to be drawn twice?).

 Am I missing something with how UNIONs and STYLEITEM AUTO work?  Or is
 this how it was designed?


Christy,

The UNION layer should show the features from the source layers regardless
of their STATUS setting, so all of the features from the sources should be
rendered by default. A new attribute (Union:SourceLayerVisible) has been
added to the union layer so you can set up a FILTER expression to display
the features from only the visible sources if required. The most common
setting is to disable the visibility of the source layers (by setting the
STATUS of the layers or classes to 'off') to avoid the feature duplication.

Best regards,

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


Re: [mapserver-users] TYPE UNION and STYLEITEM

2011-05-03 Thread Tamas Szekeres
2011/5/3 Jeff McKenna jmcke...@gatewaygeomatics.com

 Christy,

 I did more tests: with beta6 my example (the one on the mapserver site)
 works, but with the recent beta7 and rc1 the union layer is never styled
 through styleitem auto.

 Tamas did something change in beta7 in the union code?


Good question, I'll investigate this problem.

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


[mapserver-users] Windows SDK support (at vbkto.dyndns.org) site has been relocated

2011-04-19 Thread Tamas Szekeres
Looks like my account on dyndns has been lost :-(  Since I'm getting tired
to update the account in every month, I've already registered a domain to
point to this location which is:

http://www.gisinternals.com/sdk/

If you have any links or bookmarks to point to the support site then update
them to refer to this new location. The old URL is considered to be
deprecated from now.

Best regards,

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


Re: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported

2011-04-18 Thread Tamas Szekeres
2011/4/18 Hallgren Johan johan.hallg...@sweco.se

Never ending storryJ



 Sorry to disturb you again.



 I did your changes (echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH 
 $(OUTPUT_DIR)\mapserver.opt), no change. Still the same error.



 As I mentioned before, the *wms call works with shp2img*, but gives the
 CURL error with drawmap.





Seems like libmap.dll is different when shpimg and drawmap is used. You may
also use the process
monitorhttp://technet.microsoft.com/en-us/sysinternals/bb896645to
see where the dll-s are coming from actually.
BTW: I've noticed that MapServer 5-6 requires -DCURLOPT_PROXYAUTH but 6-0
requires -DUSE_CURLOPT_PROXYAUTH.

Best regards,

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


Re: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported

2011-04-15 Thread Tamas Szekeres
Johan,

It is indeed not enabled by default and this flag hasn't been added to
nmake.opt (this may be reported as a ticket which should be fixed).
If you are using the build SDKs http://vbkto.dyndns.org/sdk/ I've just
added this flag to the builds (will be available in the next build
tomorrow).


If you prefer to compile this by using the SDK packages just replace the
row:

*echo CURL=-DUSE_CURL  $(OUTPUT_DIR)\mapserver.opt
*with
*echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH  $(OUTPUT_DIR)\mapserver.opt*
in the Makefile.

I hope that will help.

Best regards,

Tamas




2011/4/13 Hallgren Johan johan.hallg...@sweco.se

Hello



 I have a strange problem…



 I should use MapServer with Mapscript to call a WMS server as a client.



 I created a LAYER definition and after some struggle it went thru, I get my
 map. I used the *shp2img* command to test the mapfile. Next step was to
 test the mapfile with *drawmap* so the mapscript implementation was tested
 and now an error showed up.

 “CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7”



 I expected that this error should show up already in the shp2img-test, but
 there it worked fine.



 Anyone having a clue what’s wrong?



 Here is the error:

 -



 Unhandled Exception: System.ApplicationException: msHTTPExecuteRequests():
 HTTP
 request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and
 up. *_p
 roxy_auth_type setting ignored.
at OSGeo.MapServer.mapObj.draw()
at DrawMap.Main(String[] args)
 GDAL: GDALDeregister_GTiff() called.

 ---



 … and here is the layer definition.

 ---

  LAYER
   NAME 'WMS-Oversikt'
   TYPE RASTER
   STATUS ON
   CONNECTION 'http://maps.metria.se/geoserver/wms?'
   CONNECTIONTYPE WMS
   METADATA
 'wms_srs'   'EPSG:2400'
 'wms_name'   'anyname'
 'wms_server_version' '1.1.1'
 'wms_format'  'image/png'
 'wms_auth_type' 'basic'
 'wms_auth_username' 'xxx'
 'wms_auth_password' 'yyy'
 'wms_proxy_type' 'http'

 'wms_proxy_host' '147.44.134.17'
 'wms_proxy_port' '80''wms_proxy_auth_type' 'basic'
 'wms_proxy_username' 'zzz'
 'wms_proxy_password' 'yyy'
   END
  END

 --



 Regards

 Johan
  --

 *Johan Hallgren*

 Gruppchef
 Telefon direkt 023-464 92
 Mobil 073-800 64 92
 johan.hallg...@sweco.se

 *Sweco Position AB*

 Parkgatan 3
 Box 1902
 791 19 Falun
 Telefon 023-464 00
 www.sweco.se







 Please consider the environment before printing my e-mail.



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


image002.pngimage001.png___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Fwd: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported

2011-04-15 Thread Tamas Szekeres
I need to correct myself and you'll require to use the following setting
instead:

*echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  $(OUTPUT_DIR)\mapserver.opt
*

Best regards,

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


Re: [mapserver-users] Mapscript and CURLOPT_PROXYAUTH not supported

2011-04-14 Thread Tamas Szekeres
Johan,

It is indeed not enabled by default and this flag hasn't been added to
nmake.opt (this may be reported as a ticket which should be fixed).
If you are using the build SDKs http://vbkto.dyndns.org/sdk/ I've just
added this flag to the builds (will be available in the next build
tomorrow).


If you prefer to compile this by using the SDK packages just replace the
row:

*echo CURL=-DUSE_CURL  $(OUTPUT_DIR)\mapserver.opt
*with
*echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH  $(OUTPUT_DIR)\mapserver.opt*
in the Makefile.

I hope that will help.

Best regards,

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


Re: [mapserver-users] Build/download site unavailable

2011-03-30 Thread Tamas Szekeres
Works for me, currently.

Best regards,

Tamas



2011/3/30 Anzel, Phil - Fort Collins, CO phil.an...@ftc.usda.gov

 Hi, All,

 Is the MapServer binary download site site 
 http://vbkto.dyndns.org/sdk/offline? I'm seeing timeouts when attempting to 
 connect.

 Thanks.

 - Phil Anzel
 Web Soil Survey developer
 Vistronix Inc. for USDA/NRCS/ITC
 ___
 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] USING UNIQUE with multiple fields

2011-03-29 Thread Tamas Szekeres
Hi,

That is not possible, the feature ID must be an integer field with the
current implementation.

Best regards,

Tamas



2011/3/29 geographika geograph...@gmail.com

  Hi

 I have a feature table which I'm serving out as a WFS. It has a two column
 unique index - is there support for this in a LAYER definition in a mapfile?

 E.g. DATA GEOM from mytable USING SRID=29902 USING UNIQUE Field1,Field2

 I presume not as I've tried a few combinations with no success, but just
 wondered if this is possible. I'm using a SQL Server 2008 connection.
 Thanks for any help,

 Seth

  --
 web: http://geographika.co.uk
 twitter: @geographika



 ___
 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] Pyhton mapscript and styleitem auto

2011-03-23 Thread Tamas Szekeres
Hi,

If you set the styleitem property of the layerObj to the string 'AUTO' that
should be equivalent to the same setting in the mapfile.

Best regards,

Tamas



2011/3/23 Jelmer Baas b...@speerit.nl

 Hi all,

 I've managed to build my first Python project and use mapscript to open tab
 files and render an image.

 The styling still remains, though. Since I use OGR to open MapInfo TAB
 files, I'd like to use mapscript equivalent of styleitem auto, if
 possible. Can someone please point me in the right direction?

 Regards,
 Jelmer Baas
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


Re: [mapserver-users] MapServer and Guid USING UNIQUE

2011-03-18 Thread Tamas Szekeres
2011/3/18 Roger Bedell sylvanasc...@gmail.com

 I found this:

 SELECT (select count(*) from QQHeader where PKey=a.PKey) AS RowNo, a.*
 FROM QQHeader AS a



The problem with this (and with the ROW_NUMBER option as well) is that the
order of the rows may be undeterministic unless an orderby clause is used. I
would rather suggest to use a function (either an UDF or the checksum) to
create and integer is from guid.

BTW: In the development version having an oid should not necessarily be a
requirment in order to have the query option to work. So you may probably
omit the using unique section in the layer definition (not tested by me).

Best regards,

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


Re: [mapserver-users] MapServer and Guid USING UNIQUE

2011-03-17 Thread Tamas Szekeres
Roger,

Which package did you try. The -stable branches (ie:
http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-8-mapserver-5-6.zip)
should contain the fix.

Best regards,

Tamas



2011/3/17 Roger Bedell sylvanasc...@gmail.com

 Hi Tamas,
 I'm trying to get this working and ran into a couple snags. We are
 currently using mapscript_csharp.dll version 5.6.5 in a .NET program.

 1) Tried to just copy just the msplugin_mssql2008.dll from your latest
 build from http://vbkto.dyndns.org/sdk/ - this didn't work, must have
 other dependencies, I didn't really think it would work.

 2) Tried to use the latest build. Strangely, mapscript_csharp.dll doesn't
 seem to have the same objects as 5.6.5, and I got a bunch of unresolved
 references in the code.

 What do you think is the easiest way to get this working?


 Thanks,
 Roger Bedell
 Coordinate Solutions Inc.


 On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres szeker...@gmail.comwrote:

 Hi Roger,

 Could you create a ticket with this issue (
 http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing
 this.

 Best regards,

 Tamas




 2011/3/10 Roger Bedell sylvanasc...@gmail.com

 Thanks Till, however, here is the trace from the ODBC tracer, pretty
 obvious what is going on:

   DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
 Server]Insufficient result space to convert uniqueidentifier value to char.
 (8170)

 Guids generally take up 36 characters when converted to a string, and the
 Select statement only has room for 20.

 Since this is a SQL specific query, my guess it is being generated in the
 sql spatial driver?

 Roger


   HSTMT   0x0589B310
   UCHAR * 0x05E1A990 [  -3] SELECT
 Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader
 WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599
 29.2473266843318,-93.22438 29.2473266843318,-93.22438
 41.3707663156682,-104.18599 41.3707663156682,-104.18599
 29.2473266843318))',4326)) = 1 \ 0
   SDWORD-3

   DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
 Server]Insufficient result space to convert uniqueidentifier value to char.
 (8170)







 On Thu, Mar 10, 2011 at 12:04 PM, adams ad...@terrestris.de wrote:

  Dear Roger,

 if you get an empty image with no error, the first try would be to use a
 simple symbol and no expression in your layer.
 Also ensure, that your extent when querying the map is correct.

 So you make sure, that everything around your datasource is OK.

 Then use a datastring like this one:


 DATA the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo
 USING UNIQUE PKey USING SRID=4326

 or however the geometry-column in mssql server is called ;-)

 Regards, Till




 Roger Bedell wrote:

 Good Morning.
 I am currently working with MapServer and the MSSQL Spatial driver. I am
 seeing that MS does not work with a DATA statement like this in the Map
 file:

 DATA Feature from MetesAndBoundsHeader USING UNIQUE PKey USING
 SRID=4326

 where PKey is defined like this:

 [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL,

 No errors are triggered, however nothing is displayed, including all
 other layers. Is this an issue with the SQL Spatial driver or MapServer? 
 Any
 ideas on how to fix it?

 Thanks!
 Roger Bedell
 Coordinate Solutions Inc.

 --

 ___
 mapserver-users mailing 
 listmapserver-users@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users


 --

 -
 terrestris GmbH  Co. KG
 Irmintrudisstrasse 17
 53111 Bonn
 Germany

 Till Adams
 Geschäftsführung

 Tel: +49 (0)228 / 962 899-52
 Fax: +49 (0)228 / 962 899-57ad...@terrestris.de http://www.terrestris.de
 Amtsgericht Bonn, HRA 6835
 -

 Komplementärin:

 terrestris Verwaltungs GmbH

 vertreten durch:
 Hinrich Paulsen, Till Adams



 ___
 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] MapServer and Guid USING UNIQUE

2011-03-10 Thread Tamas Szekeres
Hi Roger,

Could you create a ticket with this issue (
http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this.

Best regards,

Tamas



2011/3/10 Roger Bedell sylvanasc...@gmail.com

 Thanks Till, however, here is the trace from the ODBC tracer, pretty
 obvious what is going on:

   DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
 Server]Insufficient result space to convert uniqueidentifier value to char.
 (8170)

 Guids generally take up 36 characters when converted to a string, and the
 Select statement only has room for 20.

 Since this is a SQL specific query, my guess it is being generated in the
 sql spatial driver?

 Roger


   HSTMT   0x0589B310
   UCHAR * 0x05E1A990 [  -3] SELECT
 Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader
 WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599
 29.2473266843318,-93.22438 29.2473266843318,-93.22438
 41.3707663156682,-104.18599 41.3707663156682,-104.18599
 29.2473266843318))',4326)) = 1 \ 0
   SDWORD-3

   DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
 Server]Insufficient result space to convert uniqueidentifier value to char.
 (8170)







 On Thu, Mar 10, 2011 at 12:04 PM, adams ad...@terrestris.de wrote:

  Dear Roger,

 if you get an empty image with no error, the first try would be to use a
 simple symbol and no expression in your layer.
 Also ensure, that your extent when querying the map is correct.

 So you make sure, that everything around your datasource is OK.

 Then use a datastring like this one:


 DATA the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo
 USING UNIQUE PKey USING SRID=4326

 or however the geometry-column in mssql server is called ;-)

 Regards, Till




 Roger Bedell wrote:

 Good Morning.
 I am currently working with MapServer and the MSSQL Spatial driver. I am
 seeing that MS does not work with a DATA statement like this in the Map
 file:

 DATA Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326

 where PKey is defined like this:

 [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL,

 No errors are triggered, however nothing is displayed, including all other
 layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas
 on how to fix it?

 Thanks!
 Roger Bedell
 Coordinate Solutions Inc.

 --

 ___
 mapserver-users mailing 
 listmapserver-users@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users


 --

 -
 terrestris GmbH  Co. KG
 Irmintrudisstrasse 17
 53111 Bonn
 Germany

 Till Adams
 Geschäftsführung

 Tel: +49 (0)228 / 962 899-52
 Fax: +49 (0)228 / 962 899-57ad...@terrestris.de http://www.terrestris.de
 Amtsgericht Bonn, HRA 6835
 -

 Komplementärin:

 terrestris Verwaltungs GmbH

 vertreten durch:
 Hinrich Paulsen, Till Adams



 ___
 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] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Tamas Szekeres
Andy,

Take a look at the migration guide
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
Specifically to the OGC Web Services part.

Best regards,

Tamas



2011/3/10 Andy Colson a...@squeakycode.net

 On 3/10/2011 1:03 PM, Andy Colson wrote:

 On 3/9/2011 8:47 PM, Daniel Morissette wrote:

 The MapServer Team is pleased to announce the release of MapServer
 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.


 I cannot get perl mapscript to work.

 my code:

 $x = $map-OWSDispatch( $owreq );
 if ($x)
 {
 print STDERR ERROR: OWSDispatch: $x\n;
 my $errObj = new mapscript::errorObj();
 while ($errObj) {
 print STDERR ERROR:
 $errObj-{code}:$errObj-{message}:$errObj-{routine} \n;
 $errObj = $errObj-next();
 }
 }

 my $content_type = mapscript::msIO_stripStdoutBufferContentType();
 $x = mapscript::msIO_getStdoutBufferBytes();

 This is a test script, and the first problem is I'm not passing any
 arguments to OWSDispatch. Prior versions errored out and reported:

 ERROR: OWSDispatch: 1
 ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue,
 locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch()


 Ver 6 however reports:

 ERROR: OWSDispatch: 2
 ERROR: 0::

 Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff
 did not get set.

 (when I do pass arguments to OWSDispatch I still get an error but with
 no errorObj descriptions I have no idea whats wrong)

 Oh, and shp2img works ok.

 -Andy

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


 Oh, if I set EXCEPTIONS to vnd.ogc.se_xml, I do get a message:

 snipped
 ServiceException code=LayerNotDefined
 msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
 LAYERS parameter.

 The layer is set and is valid, its the same request I make to the prior
 version of mapscript and it works fine.

 I did have to modify my map file just a bit (commented out the ANGLE and
 label backgroundcolor), but all the layers are still there.


 -Andy

 ___
 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] MapScript issue in multiple WCF apps (ASP.NET)

2011-03-09 Thread Tamas Szekeres
Hi Brian,

Got it, thanks. I'm going to inspect the problem and get back to you if I
have further questions.

Best regards,

Tamas




2011/3/9 Brian Poteat poteat.br...@geoeye.com

 Thanks Tamas,

 I put together a solution that mimics what I am doing at a very simple
 level and I got it to error fairly easily.



 This zip contains an example mapfile and the solution used to reproduce the
 setup. I just put everything in c:\tmp\test. The applications are .NET 4.0
 WCF endpoints and will install as IIS web services (so obviously you’ll need
 the appropriate software to build/run).

 http://dl.dropbox.com/u/649621/WcfMapScript.zip



 If you build the solution and then execute the following service requests
 in order, at some point the requests no longer return correct data. Asking
 for one layer will return the other. Sometimes the results vary but usually
 just mixing up the requested layers on the two different services will cause
 strange behavior.




 http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L54CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL54%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358




 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L57CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL57%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358




 http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L57CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL57%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358




 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L54CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL54%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358



 I apologize for the strange requests and images but I am a not really
 familiar with the mapfile format and just tried to reproduce the requests as
 closely as they were in a real environment.

 Brian





 *From:* Tamas Szekeres [mailto:szeker...@gmail.com]
 *Sent:* Tuesday, March 08, 2011 4:46 PM
 *To:* Brian Poteat
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] MapScript issue in multiple WCF apps (
 ASP.NET)



 Hi Brian,


 Could you provide the sequence of the requests, a mapfile example, that can
 be used to reproduce this problem?
 What do you mean by configure them independently? Different application
 pool for each service type?

 Best regards,

 Tamas


 2011/3/8 Brian Poteat poteat.br...@geoeye.com

 I have a very strange issue while using MapScript from within some web
 service projects. I have different projects/applications for different
 services – one for each of WCF, WMS, WFS, and WMTS – so we can configure
 them independently. MapScript requests work fine for all of them separately
 but if I access MapScript from one and then another, one of them will not
 work correctly anymore. The requests will return success (result == 0) and
 the format returned is correct but the data is either null or an incorrect
 image. It doesn’t seem to be a threading issue since I can bombard any one
 of the services with asynchronous requests and they are handled fine and the
 problems don’t necessarily come while

Re: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)

2011-03-09 Thread Tamas Szekeres
BTW: could you file a ticket (assigned to the csharp bindings) in order to
keep the things in view?

Best regards,

Tamas



2011/3/9 Tamas Szekeres szeker...@gmail.com

 Hi Brian,

 Got it, thanks. I'm going to inspect the problem and get back to you if I
 have further questions.

 Best regards,

 Tamas




 2011/3/9 Brian Poteat poteat.br...@geoeye.com

 Thanks Tamas,

 I put together a solution that mimics what I am doing at a very simple
 level and I got it to error fairly easily.



 This zip contains an example mapfile and the solution used to reproduce
 the setup. I just put everything in c:\tmp\test. The applications are .NET
 4.0 WCF endpoints and will install as IIS web services (so obviously you’ll
 need the appropriate software to build/run).

 http://dl.dropbox.com/u/649621/WcfMapScript.zip



 If you build the solution and then execute the following service requests
 in order, at some point the requests no longer return correct data. Asking
 for one layer will return the other. Sometimes the results vary but usually
 just mixing up the requested layers on the two different services will cause
 strange behavior.




 http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L54CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL54%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358




 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L57CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL57%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358




 http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L57CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL57%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358




 http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.mapLAYERS=L54CRS=EPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:%5Ctmp%5Ctest%5Cmap.map%26LAYERS%3DL54%26CRS%3DEPSG:4326TRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageFORMAT=image%2FpngBBOX=60.33182566,24.9997419977717,73.0167274,30.0446813WIDTH=1032HEIGHT=358



 I apologize for the strange requests and images but I am a not really
 familiar with the mapfile format and just tried to reproduce the requests as
 closely as they were in a real environment.

 Brian





 *From:* Tamas Szekeres [mailto:szeker...@gmail.com]
 *Sent:* Tuesday, March 08, 2011 4:46 PM
 *To:* Brian Poteat
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] MapScript issue in multiple WCF apps (
 ASP.NET)



 Hi Brian,


 Could you provide the sequence of the requests, a mapfile example, that
 can be used to reproduce this problem?
 What do you mean by configure them independently? Different application
 pool for each service type?

 Best regards,

 Tamas


 2011/3/8 Brian Poteat poteat.br...@geoeye.com

 I have a very strange issue while using MapScript from within some web
 service projects. I have different projects/applications for different
 services – one for each of WCF, WMS, WFS, and WMTS – so we can configure
 them independently. MapScript requests work fine for all of them separately
 but if I access MapScript from one and then another, one of them will not
 work correctly anymore. The requests will return success (result == 0) and
 the format returned is correct but the data is either null or an incorrect
 image. It doesn’t

Re: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)

2011-03-08 Thread Tamas Szekeres
Hi Brian,

Could you provide the sequence of the requests, a mapfile example, that can
be used to reproduce this problem?
What do you mean by configure them independently? Different application
pool for each service type?

Best regards,

Tamas



2011/3/8 Brian Poteat poteat.br...@geoeye.com

 I have a very strange issue while using MapScript from within some web
 service projects. I have different projects/applications for different
 services – one for each of WCF, WMS, WFS, and WMTS – so we can configure
 them independently. MapScript requests work fine for all of them separately
 but if I access MapScript from one and then another, one of them will not
 work correctly anymore. The requests will return success (result == 0) and
 the format returned is correct but the data is either null or an incorrect
 image. It doesn’t seem to be a threading issue since I can bombard any one
 of the services with asynchronous requests and they are handled fine and the
 problems don’t necessarily come while using the different applications at
 the same time – just one then the other.



 I am using a support project for making the MS requests that is referenced
 by each application (though I tried putting the code directly in each app
 with the same results). Below is a simplified version of the helper utility
 I am using. Is there anything that stands out as being an obvious issue? My
 endpoint applications simply get the query parameters from the url request
 and pass them as the requestParams argument with the appropriate map file.

 namespace MapScript

 {

  public class MapScriptResponse

  {

  public string Format { get; set; }

  public byte[] Data { get; set; }

  public string ErrorString { get; set; }

  public DateTime LastModified { get; set; }

  }

  public class MapScriptUtilities

  {

  /// summary

  ///
  Execute a service request to mapserver through mapscript

  /// /summary

   /// param name=mapFile
 Physical path to the map file on which to make the request/param

  /// param name=requestParams
 List of request parameters/param

  /// returnsThe response from mapscript./returns

   public static MapScriptResponse ServiceRequest(string
  mapFile, Dictionarystring, string requestParams)

  {

   MapScriptResponse response = new
 MapScriptResponse();

   mapObj map = new mapObj(mapFile);

   OWSRequest owsRequest = new OWSRequest();

   Dictionarystring, string.Enumerator
  en = requestParams.GetEnumerator();

   string paramName = ;

   string paramValue = ;

   while (en.MoveNext())

   {

paramName = en.Current.Key;

paramValue = en.Current.Value;


 owsRequest.setParameter(paramName, paramValue);

   }

   mapscript.msIO_installStdoutToBuffer();

   int resultCode = map.OWSDispatch(owsRequest);

   if (resultCode == 0)

   {

response.Format = mapscript
 .msIO_stripStdoutBufferContentType();

response.Data = mapscript
 .msIO_getStdoutBufferBytes();

   }



   return response;

  }

  }

 }



 Any help would be greatly appreciated.

 Brian

 ___
 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] Heatmap / choropleth from points attributes

2011-02-26 Thread Tamas Szekeres
2011/2/26 Milo van der Linden m...@dogodigi.net

 Very nice example Tamas!

 In my opinion there is only one extra step needed; a no-color
 transparent section in the final image. Do you think this would also
 be possible?


Yes, it should work by applying a LUT for the alpha channel.

Best regards,

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


Re: [mapserver-users] Status of Java MapScript?

2011-02-24 Thread Tamas Szekeres
Stephan,

I consider the save option is working equally well for all bindings. The
bulk of the code is implemented in the common mapserver code (mapfile.c)
which is not language specific.

Best regards,

Tamas



2011/2/24 Stephan Holl stephan.h...@intevation.de

 Hello Umberto,

 Stephan Holl stephan.h...@intevation.de, [20110223 - 14:09:04]

  Hello Umberto,
 
  Umberto Nicoletti umberto.nicole...@gmail.com, [20110222 - 20:22:59]
 
   Hi Stephan,
   I'm the mantainer of java mapscript and while I have not been
   working on it for quite some time, I am stil successfully using it
   in a couple of projects (one is a fairly complex webgis).
 
  OK, thanks for your input. It seems I have to play a little bit with
  it and see how I can live with that.

 I am pariculary intersting in saving a mapfile with the save()-method.
 How is the status with this? Are there any mapfile-keywords accessable
 (and writeable) to a mapfile using mapscript? Are there known
 limitations?

 TIA

Stephan

 
   On Tue, Feb 22, 2011 at 9:51 AM, Stephan Holl
   stephan.h...@intevation.dewrote:
  
Hello list,
   
is anybody able to share the current status of Java Mapscript?
Browsing the net mostly brings up PHP mapscript, C# or python
mapscript status.
   
I would love to hear some user-feedback from happy (and of course
unhappy) Java mapscript-users. :-)
   
TIA
   
   Stephan
   
--
Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33
508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG
Osnabrück - HR B 18998 Geschäftsführer:  Frank Koormann, Bernhard
Reiter, Dr. Jan-Oliver Wagner
   
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
   
   
 
 


 Viele Grüße

Stephan

 --
 Stephan Holl stephan.h...@intevation.de | Tel.: +49 (0)541-33 508 3663
 Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
 Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

 ___
 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] How I solve This Exception

2011-02-20 Thread Tamas Szekeres
Do you have more details about this error message? I suspect it might be a
DllNotFoundException which would indicate that one or more dll-s (mostly the
unmanaged part) are not available to load at run-time.


Best regards,

Tamas



2011/2/20 Mustafa646 noorc...@gmail.com


 I am using C# MapScript in ASP.Net Application.
 I am getting an exception at this line:

 mapObj map = new

 mapObj(System.Configuration.ConfigurationManager.AppSettings[mapFilePath].ToString());

 Exception:

 The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an
 exception.

 Can anybody have an idea about this, what is wrong ?

 this is code of a sample application from:

 http://www.paolocorti.net/2006/07/26/implementing-the-c-mapscript-code/

 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6045646.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


Re: [mapserver-users] Buffer features?

2011-02-15 Thread Tamas Szekeres
In accordance with the problem mentioned, I recall a resonable enhancement
as described in
RFC22ahttp://www.mapserver.org/development/rfc/ms-rfc-22a.htmlwhich
would provide an option to configure all the stuff in the mapfile (not
requiring MapScript) and would make it easier to customize the query maps as
well.

With this enhancement 2 new layer data providers could be implemented, like:

1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of
one layer in a new layer.
2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on
a source layer and then provide the modified features as a new layer.

By chaining these layers together in a map configuration we could get such
results http://trac.osgeo.org/mapserver/attachment/ticket/2128/sample4.pngas
included in the RFC document.

I consider this kind of enhancement could be implemented within the scope of
1-2 days of work (comparable with a fully elaborated MapScript solution
providing the same)

Best regards,

Tamas




2011/2/14 Bistrais, Bob bob.bistr...@maine.gov

  This question may have come up before, but I haven’t found it in the
 archives.  I would like to take a selected feature and buffer it to a
 specified distance.  I know it’s possible to do a queryByPoint with a buffer
 distance, but I need to create an actual buffer shape to display on the
 map.  Has anyone done something like this before?  Does MapServer have this
 capability?

 ___
 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] Buffer features?

2011-02-15 Thread Tamas Szekeres
Steve,

Did you mean to achieve something like?:

LAYER
 CONNECTIONTYPE TRANSFORM
 CONNECTION sourcelayer  # reference to another layer
 NAME transformlayer
 PROCESSING TRANSFORM=(buffer([shape]))
 TEMPLATE query.html
 
END
LAYER
 CONNECTIONTYPE SHAPE
 DATA myfile.shp
 NAME sourcelayer
 
END


Which is simple and easy to implement.

Best regards,

Tamas



2011/2/15 Lime, Steve D (DNR) steve.l...@state.mn.us

 I’d approach RFC 22, especially the transform piece, differently now with
 the parser changes  implemented in 6.0. We now have (with GEOS enabled) an
 expression syntax available to support things like buffering, convex hull,
 differences, etc… or combinations thereof. I’d implement layer-level
 GEOMTRANSFORMs in that case using these expressions.



 On the query result side of things I’d consider adding a layer template as
 a layer option. This would kinda work like the approach outlined for Bob.
 You’d define a presentation template layer (no DATA value) and run the query
 results through it instead of the regular layer (for certain querymap types,
 e.g. highlight).



 Steve



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Tamas Szekeres
 *Sent:* Tuesday, February 15, 2011 3:06 AM
 *To:* Bistrais, Bob
 *Cc:* mapserver-users
 *Subject:* Re: [mapserver-users] Buffer features?



 In accordance with the problem mentioned, I recall a resonable enhancement
 as described in 
 RFC22ahttp://www.mapserver.org/development/rfc/ms-rfc-22a.htmlwhich would 
 provide an option to configure all the stuff in the mapfile (not
 requiring MapScript) and would make it easier to customize the query maps as
 well.

 With this enhancement 2 new layer data providers could be implemented,
 like:

 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of
 one layer in a new layer.
 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations
 on a source layer and then provide the modified features as a new layer.

 By chaining these layers together in a map configuration we could get such
 resultshttp://trac.osgeo.org/mapserver/attachment/ticket/2128/sample4.pngas 
 included in the RFC document.

 I consider this kind of enhancement could be implemented within the scope
 of 1-2 days of work (comparable with a fully elaborated MapScript solution
 providing the same)

 Best regards,

 Tamas



 2011/2/14 Bistrais, Bob bob.bistr...@maine.gov

 This question may have come up before, but I haven’t found it in the
 archives.  I would like to take a selected feature and buffer it to a
 specified distance.  I know it’s possible to do a queryByPoint with a buffer
 distance, but I need to create an actual buffer shape to display on the
 map.  Has anyone done something like this before?  Does MapServer have this
 capability?


 ___
 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


  1   2   3   4   >