[mapserver-users] KML Multigeometry

2015-04-24 Thread alok mathur
Hi,

Need help!!  I have a kml with multigeometry placemark in it as shown
below. Also I have create a map file corresponding to this kml as shown.
I am unable to view the data on map, there is no error coming. Please let
me know what wrong i am doing.

MAP
-

LAYER
GROUP "default"
NAME "layer0"
DATA "SELECT * FROM 'TestFolder' WHERE FID=0 AND OGR_GEOMETRY='LINESTRING'"
METADATA
"wms_title" "Layer_0"
"gml_geometries" "geom"
"gml_include_items" "all"
"wms_include_items" "all"
"wms_feature_info_mime_type" "text/plain"
"gml_geom_type" "line"
END
STATUS DEFAULT
TEMPLATE queryable
TYPE LINE
CONNECTIONTYPE OGR
CONNECTION "test.kml"
CLASS
NAME "class"
STYLE
WIDTH 10
COLOR 0 0 255
END #style end
END #class end
END #layerend
END

KML
--

http://www.opengis.net/kml/2.2"; xmlns:gx="
http://www.google.com/kml/ext/2.2"; xmlns:kml="http://www.opengis.net/kml/2.2";
xmlns:atom="http://www.w3.org/2005/Atom";>



 TestFolder

  SF Marina Harbor Master
  0
  

  
  
  -71.460218,42.901764,1 -71.460193,42.901815,1 -71.460095,42.902058,1
-71.460027,42.902381,1 -71.460009,42.902723,1
-71.460016,42.903507,1 -71.459988,42.904164,1
-71.459951,42.904524,1 -71.4598540001,42.905083,1
-71.459458,42.906672,1 -71.459121,42.907851,1
-71.4588410001,42.908847,1 -71.4587630001,42.909122,1
  


  
  
-122.4425509770566,37.80662588061205,0
-122.4428340530617,37.8065999493009,0
  


-122.4428340530617,37.8065999493009,0

  







Thanks!

-- 

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

[mapserver-users] KML Parsing

2015-04-21 Thread alok mathur
I have a KML with two folders with same name. How should i show this data
using mapserver.

Im using DATA select * from  where fid =1;

Please suggest me how to do this

-- 

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

[mapserver-users] Kml + mapserver

2015-04-15 Thread alok mathur
Hi Lars,

I have a KML with multiple placemarks in it. Now i want to read each
Placemark and make it a different layer in mapfile.

Is it a right way to do so and also in case of multigeometry how to handle
that with fid.

Let me know in case of any concern.

for eg

KML
--

Fibertech

P1
...



P2
...



MAP file
-

LAYER
NAME ""
...
DATA "select * from "Fibertech" where fid =1;
..
END

LAYER
NAME ""
...
DATA "select * from "Fibertech" where fid =2;
..
END

-- 

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

[mapserver-users] KML

2015-04-15 Thread alok mathur
Hi,

I have a KML as below:


http://www.opengis.net/kml/2.2";>

  doc
  0
 
  SF Marina Harbor Master
  0
  

  
  
-122.4425587930444,37.80666418607323,0
-122.4428379594768,37.80663578323093,0
  


  
  
-122.4425509770566,37.80662588061205,0
-122.4428340530617,37.8065999493009,0
  

 -90.86948943473118,48.25450093195546,0

  






In DATA part of the map file i want to use a query. but i able to do so.

Example

DATA "select * from 'doc' where fid=1;

any one please suggest how to show all the geometries using FID.

Thanks!

-- 

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

[mapserver-users] Map correlation

2015-04-08 Thread alok mathur
Hi,

I am using open layers3 to show the map on client. I want to click on map
displayed on client and  get the layer details. Could you please suggest if
there is another way to do it.
-- 

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

[mapserver-users] Fwd: Kml To mapserver

2015-04-08 Thread alok mathur
Also i want to know how to handle multigeometry in kml in map file using
FID.

-- Forwarded message --
From: alok mathur 
Date: Sat, Apr 4, 2015 at 7:34 PM
Subject: Kml To mapserver
To: "mapserver-users@lists.osgeo.org" 


Hi,

I have a kml as an data for mapserver. In that kml there is one folder with
multile point placemarks. I want to create a map file for this kml data.

Each point should represent single layer in map file.

Sample KML.
-


http://earth.google.com/kml/2.1";>

 
 
P1
ObjectId: 1120

1
relativeToGround

-70.563856,42.288663,0





P2
ObjectId: 1120

1
relativeToGround

-71.563856,42.288663,1




P3
ObjectId: 1120

1
relativeToGround

-71.563856,42.288663,1




....








-- 

*Alok Mathur* |



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Fwd: Kml To mapserver

2015-04-07 Thread alok mathur
Can i use FID for the below problem. Eg:

DATA "Select * from 'F1' where FID=1 in map config file.

Please help me out.

I have a kml as an data for mapserver. In that kml there is one folder with
multile point placemarks( no of placemark can vary). I want to create a map
file on the fly for this kml data.

Each point should represent single layer in map file.

Sample KML.
-


http://earth.google.com/kml/2.1";>

 
F1
 
P1
ObjectId: 1120

1
relativeToGround

-70.563856,42.288663,0





P2
ObjectId: 1120

1
relativeToGround

-71.563856,42.288663,1




P3
ObjectId: 1120

1
relativeToGround

-71.563856,42.288663,1




....








-- 

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

[mapserver-users] Kml To mapserver

2015-04-04 Thread alok mathur
Hi,

I have a kml as an data for mapserver. In that kml there is one folder with
multile point placemarks. I want to create a map file for this kml data.

Each point should represent single layer in map file.

Sample KML.
-


http://earth.google.com/kml/2.1";>

 
 
P1
ObjectId: 1120

1
relativeToGround

-70.563856,42.288663,0





P2
ObjectId: 1120

1
relativeToGround

-71.563856,42.288663,1




P3
ObjectId: 1120

1
relativeToGround

-71.563856,42.288663,1













-- 

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

Re: [mapserver-users] Calculate length!

2015-03-16 Thread alok mathur
Lars,

I have the latest OGR

GDAL 1.11.2, released 2015/02/10

Thanks!
Alok

On Mon, Mar 16, 2015 at 5:39 PM, Schylberg Lars <
lars.schylb...@saabgroup.com> wrote:

>  I guess this must be a version problem.  That same command runs fine on
> my osgeolive8 machine.
>
>
>
> ogrinfo --version
>
> GDAL 1.10.1, released 2013/08/26
>
>
>
> /Lars
>
>
>
>
>
> *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
> mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *alok mathur
> *Sent:* den 16 mars 2015 09:54
> *To:* Rahkonen Jukka (MML); mapserver-users@lists.osgeo.org
> *Subject:* Re: [mapserver-users] Calculate length!
>
>
>
> Hi Jukka,
>
>
>
> When i am trying to run the above ogr command as mentioned by you I am
> getting an error
>
>
>
> ogrinfo -dialect sqlite -sql "select st_length(geometry) from 'Fibertech
> solution'" doc_test.kml
>
> INFO: Open of `doc_test.kml'
>
>   using driver `LIBKML' successful.
>
> ERROR 1: In ExecuteSQL(): sqlite3_prepare(select st_length(geometry) from
> 'Fibertech solution'):
>
>   no such function: st_length
>
>
>
>
>
>
>
> Please let me know what the issue is. I have installed both libsqlite3 and
> libspatialite.
>
>
>
> Thanks!
>
> Alok
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Calculate length!

2015-03-16 Thread alok mathur
Hi Jukka,

When i am trying to run the above ogr command as mentioned by you I am
getting an error

ogrinfo -dialect sqlite -sql "select st_length(geometry) from 'Fibertech
solution'" doc_test.kml
INFO: Open of `doc_test.kml'
  using driver `LIBKML' successful.
ERROR 1: In ExecuteSQL(): sqlite3_prepare(select st_length(geometry) from
'Fibertech solution'):
  no such function: st_length



Please let me know what the issue is. I have installed both libsqlite3 and
libspatialite.

Thanks!
Alok

On Fri, Mar 13, 2015 at 5:04 PM, Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> wrote:

>  Hi,
>
>
>
> You do not need anything else than GDAL which is compiled with libraries
>  libsqlite3 and  libspatialite.
>
> If you have a suitable GDAL version you should be able to repeat this with
> the attached small KML file.
>
>
>
>
>
> ogrinfo -dialect sqlite -sql "select st_length(geometry) from Layer0"
> lines.kml
>
> INFO: Open of `lines.kml'
>
>   using driver `LIBKML' successful.
>
>
>
> Layer name: SELECT
>
> Geometry: None
>
> Feature Count: 2
>
> Layer SRS WKT:
>
> (unknown)
>
> st_length(geometry): Real (0.0)
>
> OGRFeature(SELECT):0
>
>   st_length(geometry) (Real) = 38.2726390753108
>
>
>
> OGRFeature(SELECT):1
>
>   st_length(geometry) (Real) = 34.5939953221416
>
>
>
> -Jukka Rahkonen-
>
>
>
>
>
> alok mathur wrote:
>
>
>
> Hi Rahkonen,
>
>
>
> I have a KML as data source and I am not using sqlite or postgis.
>
> I am reading the KML from ogrinfo. is there anyway to do the length
> calculation without using sqlite or postgis.
>
>
>
> Thanks!
>
> Alok
>
>
>
> On Fri, Mar 13, 2015 at 3:28 PM, Rahkonen Jukka (MML) <
> jukka.rahko...@maanmittauslaitos.fi> wrote:
>
> Hi Lars,
>
>
>
> You should not underestimate GDAL.  Read
> http://www.gdal.org/ogr_sql_sqlite.html and look at this:
>
>
>
> ogrinfo -dialect sqlite -sql "select st_length(geometry) from line_demo
> limit 5" line_demo.shp
>
> INFO: Open of `line_demo.shp'
>
>   using driver `ESRI Shapefile' successful.
>
>
>
> Layer name: SELECT
>
> Geometry: None
>
> Feature Count: 10
>
> Layer SRS WKT:
>
> (unknown)
>
> st_length(geometry): Real (0.0)
>
> OGRFeature(SELECT):0
>
>   st_length(geometry) (Real) = 638.237633730745
>
> OGRFeature(SELECT):1
>
>   st_length(geometry) (Real) = 32.7179011265525
>
> OGRFeature(SELECT):2
>
>   st_length(geometry) (Real) = 4399.43983906202
>
> OGRFeature(SELECT):3
>
>   st_length(geometry) (Real) = 480.395511976145
>
> OGRFeature(SELECT):4
>
>   st_length(geometry) (Real) = 311.309421824364
>
> -Jukka Rahkonen-
>
>
>
>
>
> Schylberg Lars wrote:
>
>
>
> As far as I know there is no length function in Mapserver.
>
> The only geometry function to use in Expressions is area(shape).
>
> OGR sql doesn’t provide that either as far as I can see in the
> documentation.
>
>
>
> So the solutions might be to convert your KML data to  sqlite or postgis
> where such functions are available.
>
>
>
> The length of a string (number of characters in the string) can be found
> in OGR sql with the length function,
> but I am assuming You are looking for the geometric length of the
> linestring.
>
>
>
> /Lars
>
>
>
> *From:* mapserver-users-boun...@lists.osgeo.org [
> mailto:mapserver-users-boun...@lists.osgeo.org
> ] *On Behalf Of *alok mathur
> *Sent:* den 13 mars 2015 07:01
> *To:* mapserver-users@lists.osgeo.org
> *Subject:* [mapserver-users] Calculate length!
>
>
>
> Hi,
>
>
>
> I want to calculate the length in mapserver. Is it possible. Means i have
> a linestring and i want to know the length for it.
>
> Also not could be suggest me how to do it.
>
>
>
> I am using data source to mapserver as KML.
>
>
>
> Thanks!
>
>
>
> --
>
> *Alok Mathur*
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
>
> --
>
> *Alok Mathur* | Software Engineer 2A | Ciena
> Mobile +91 9899413266
>



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Calculate length!

2015-03-13 Thread alok mathur
Thanks Lars. Yes I am looking for geometric length.


On Fri, Mar 13, 2015 at 3:11 PM, Schylberg Lars <
lars.schylb...@saabgroup.com> wrote:

>  As far as I know there is no length function in Mapserver.
>
> The only geometry function to use in Expressions is area(shape).
>
> OGR sql doesn’t provide that either as far as I can see in the
> documentation.
>
>
>
> So the solutions might be to convert your KML data to  sqlite or postgis
> where such functions are available.
>
>
>
> The length of a string (number of characters in the string) can be found
> in OGR sql with the length function,
> but I am assuming You are looking for the geometric length of the
> linestring.
>
>
>
> /Lars
>
>
>
> *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
> mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *alok mathur
> *Sent:* den 13 mars 2015 07:01
> *To:* mapserver-users@lists.osgeo.org
> *Subject:* [mapserver-users] Calculate length!
>
>
>
> Hi,
>
>
>
> I want to calculate the length in mapserver. Is it possible. Means i have
> a linestring and i want to know the length for it.
>
> Also not could be suggest me how to do it.
>
>
>
> I am using data source to mapserver as KML.
>
>
>
> Thanks!
>
>
>
> --
>
> *Alok Mathur*
>
> _______
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Calculate length!

2015-03-12 Thread alok mathur
Hi,

I want to calculate the length in mapserver. Is it possible. Means i have a
linestring and i want to know the length for it.
Also not could be suggest me how to do it.

I am using data source to mapserver as KML.

Thanks!

-- 

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

Re: [mapserver-users] KML reading through OGR

2015-03-12 Thread alok mathur
Hi Lars,

I want to create a styling for each placemark  in .map file. Means If i
have a KML containing one folder with multiple placemarks as shown below. I
want to create a .map file which will contain style for each placemark.
What if i have the same names of placemarks. Please help me to get the
solution

Eg.

KML



NE Third Route

Fibertech solution

Westborough MSC - Build
#msn_ylw-pushpin4

1

-71.58570500983306,42.28745742866225,0
-71.58563778135751,42.28308954118536,0
-71.58466087108053,42.28307704913402,0




Westborough MSC to Westborugh
#msn_ylw-pushpin8

1

-71.62172195712955,42.27186897741407,0
-71.6219495552,42.27189433043378,0
-71.6225634332947,42.27210480296427,0
-71.62308968672842,42.27236391420707,0
-71.62394597288645,42.27309147863262,0
-71.62737594489003,42.27740640295431,0
-71.62822373584245,42.27893783334968,0
-71.63091971519079,42.2816476278,0
-71.63207040059587,42.28370221254578,0
-71.62599732629406,42.28418518334991,0
-71.60795611539982,42.28517668969011,0
-71.60267209851122,42.28504601944216,0
-71.60188701357249,42.28516492137062,0
-71.58850360403626,42.28849573666959,0
-71.5858004650346,42.28852197680775,0 -71.58571706491037,42.2874804233345,0




NEW Danbury

-73.45375129836707
41.390460041635
419.0806930250601
13.43312150541231
28.58299225276625
-0.685026358787494
relativeToSeaFloor

#msn_ylw-stars

1
-73.45404626023216,41.3929335947184,0



NEW Scotland Amp

-72.09703050755105
41.69579944328172
0
-0.790587312931665
19.0106770482321
445.0511788150669
relativeToSeaFloor

#msn_ylw-stars

1
-72.09643061038489,41.6960553015771,0








On Wed, Mar 11, 2015 at 6:38 PM, Schylberg Lars <
lars.schylb...@saabgroup.com> wrote:

>  The OGR style is the variable that is returned in the variable that is
> casted.
>
> Please look at the Layer definitions that I sent yesterday in the mapfile
> example.
>
>
>
> DATA "SELECT Name as NAME, CAST(OGR_STYLE AS character(32)) AS STYLE FROM
> 'Fibertech solution' WHERE OGR_GEOMETRY='LINESTRING'"
>
> CLASSITEM "STYLE"
>
> LABELITEM "NAME"
>
>
>
> CLASS
>
>  EXPRESSION "@msn_ylw-pushpin4"
>
>
>
>
>
> That is the STYLE value used in the CLASSITEM expression.
>
>
>
> The description is shown in the label that uses the labelitem.  Also shown
> in the mapfile example yesterday.
>
>
>
>
>
> If You only want to get the features with the style ‘@msn_ylw-pushpin4'
> with ogrinfo you should write it like this:
>
>
>
> ogrinfo -ro doc_test.kml \
> -sql "SELECT *, CAST(OGR_STYLE AS character(255)) AS STYLE FROM 'Fibertech
> solution' \
> WHERE OGR_GEOMETRY='LINESTRING' AND OGR_STYLE='@msn_ylw-pushpin4'" –al
>
>
>
> That returns the geometry and variables according to this criteria, i.e.
> only lines and specific style.
>
>
>
> But I guess that You most likely would like to do this filtering in the
> Class section of the mapfile and not in the DATA statement.
>
>
>
> /Lars
>
>
>
>
>
> *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
> mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *alok mathur
> *Sent:* den 11 mars 2015 05:46
> *To:* mapserver-users@lists.osgeo.org
> *Subject:* [mapserver-users] KML reading through OGR
>
>
>
> Hi,
>
>
>
> I am unable to get the Styleurl using Ogrinfo. I am trying the command
>
> ogrinfo -al doc_test.kml -where "ogr_style='@msn_ylw-pushpin4'"
>
>
>
> but the result is
>
> Layer name: Fibertech solution
>
> Geometry: 3D Unknown (any)
>
> Feature Count: 0
>
> Layer SRS WKT:
>
> GEOGCS["WGS 84",
>
> DATUM["WGS_1984",
>
> SPHEROID["WGS 84",6378137,298.257223563,
>
>         AUTHORITY["EPSG","7030"]],
>
> TOWGS84[0,0,0,0,0,0,0],
>
> AUTHORITY["EPSG","6326"]],
>
> PRIMEM["Greenwich",0,
>
> AUTHORITY["EPSG","8901"]],
>
> UNIT["degree",0.0174532925199433,
>
> AUTHORITY["EPSG","9108"]],
>
> AUTHORITY["EPSG","4326"]]
>
> Name: String (0.0)
>
> Description: String (0.0)
>
>
>
>
>
>
>
> Also i want to show the description of placemark on map.
>
>
>
> Thanks!
>
>
>
> --
>
> *Alok Mathur* | Software Engineer 2A | Ciena
> Mobile +91 9899413266
>



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Length Calculation

2015-03-11 Thread alok mathur
Hi,

I want to calculate the length of line string in mapserver. Please suggest
me how to do the same.
Is there any function provided by mapserver?.
-- 

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

[mapserver-users] KML descriptionTag

2015-03-11 Thread alok mathur
Hi,
I want to show the description tag in kml file onto map. On clicking on the
point on map the balloon will be opened containing the description tag and
name tag of the point.
Please suggest me how to do the same.

-- 

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

[mapserver-users] KML reading through OGR

2015-03-10 Thread alok mathur
Hi,

I am unable to get the Styleurl using Ogrinfo. I am trying the command
ogrinfo -al doc_test.kml -where "ogr_style='@msn_ylw-pushpin4'"

but the result is
Layer name: Fibertech solution
Geometry: 3D Unknown (any)
Feature Count: 0
Layer SRS WKT:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
    AUTHORITY["EPSG","4326"]]
Name: String (0.0)
Description: String (0.0)



Also i want to show the description of placemark on map.

Thanks!

-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Best Practice

2015-03-10 Thread alok mathur
Hi ,

Could any one suggest me to how to create .map file from KML file. Are any
tools available.
My requirement is to take KML file as input create .map file corresponding
to that KML and provide changes on map so that it reflects on the fly.


-- 

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

[mapserver-users] KML in mapserver

2015-03-09 Thread alok mathur
Hi,

I have a single folder with multiple Placemarks of different geometries in
an input KML file.
And I want to create a .map file using KML as input source. As mapserver
ignores KML styling so i need to give styling in mapserver for each layer.
I want to give styling at each placemark. Could you please help me out how
to do the same.

KML
---


http://www.opengis.net/kml/2.2"; xmlns:gx="
http://www.google.com/kml/ext/2.2"; xmlns:kml="http://www.opengis.net/kml/2.2";
xmlns:atom="http://www.w3.org/2005/Atom";>


Fibertech solution
  
Westborough MSC - Build
#msn_ylw-pushpin4

1

-71.58570500983306,42.28745742866225,0
-71.58563778135751,42.28308954118536,0
-71.58466087108053,42.28307704913402,0




Westborough MSC to Westborugh
#msn_ylw-pushpin8

1

-71.62172195712955,42.27186897741407,0
-71.6219495552,42.27189433043378,0
-71.6225634332947,42.27210480296427,0
-71.62308968672842,42.27236391420707,0
-71.62394597288645,42.27309147863262,0
-71.62737594489003,42.27740640295431,0
-71.62822373584245,42.27893783334968,0
-71.63091971519079,42.2816476278,0
-71.63207040059587,42.28370221254578,0
-71.62599732629406,42.28418518334991,0
-71.60795611539982,42.28517668969011,0
-71.60267209851122,42.28504601944216,0
-71.60188701357249,42.28516492137062,0
-71.58850360403626,42.28849573666959,0
-71.5858004650346,42.28852197680775,0 -71.58571706491037,42.2874804233345,0




NEW Danbury

-73.45375129836707
41.390460041635
419.0806930250601
13.43312150541231
28.58299225276625
-0.685026358787494
relativeToSeaFloor

#msn_ylw-stars

1
-73.45404626023216,41.3929335947184,0



NEW Scotland Amp

-72.09703050755105
41.69579944328172
0
-0.790587312931665
19.0106770482321
445.0511788150669
relativeToSeaFloor

#msn_ylw-stars

1
-72.09643061038489,41.6960553015771,0








MAP
--
MAP
  NAME "QGIS-MAP"
  # Map image size
  SIZE 500 400
  UNITS meters
  EXTENT -73.454046 41.392934 -71.584661 42.288522
  #FONTSET './fonts/fonts.txt'
  SYMBOLSET 'symbols.txt'
  #PROJECTION
  #  'proj=longlat'
   # 'datum=WGS84'
   # 'no_defs'
  #END
  PROJECTION
   "init=epsg:4326"
   END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE png

 OUTPUTFORMAT
NAME "png"
DRIVER GD/PNG
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
TRANSPARENT ON
  END

  # Legend
  LEGEND
  IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
  END

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH "/tmp/ms_tmp/"

# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL "/ms_tmp/"

# WMS server settings
METADATA
  "wms_enable_request" "*"
  "wms_srs" "EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901
EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807
EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801
EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986"
  "labelcache_map_edge_buffer" "-10"
  "wms_title" "osm fiber data"
  "wms_onlineresource" "http://haxv-onecontrol-154/cgi-bin/mapserv?";
  "ows_sld_enable" "true"
   END


#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See
MapServer documentation
#TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
  END

# Start of LAYER DEFINITIONS -
  LAYER
   NAME "kml_line"
   TYPE LINE
   STATUS ON
   CONNECTIONTYPE OGR
   CONNECTION "doc_test.kml"
   DATA "SELECT * FROM 'Fibertech solution' WHERE OGR_GEOMETRY='LINESTRING'"
   LABELITEM "NAME"
   CLASS
 NAME "Fiber Data"
 STYLE
   COLOR 250 0 0
   OUTLINECOLOR 255 255 255
   SIZE 6
 END
   LABEL
 SIZE GIANT
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 POSITION AUTO
   END
  END
END
#
# Start of LAYER DEFINITIONS -
  LAYER
   NAME "kml_point"
   TYPE POINT
   STATUS DEFAULT
   CONNECTIONTYPE OGR
   CONNECTION "doc_test.kml"
   DATA "SELECT * FROM 'Fibertech solution' WHERE OGR_GEOMETRY='POINT'"
   LABELITEM "NAME"
   #FILTER ('[OGR_GEOMETRY]' == 'POINT')
   #PROCESSING_OPTION "NATIVE_FILTER=OGR_GEOMETRY='P

Re: [mapserver-users] Reading KML

2015-03-09 Thread alok mathur
 COLOR 0 0 0
# OUTLINECOLOR 255 255 255
# POSITION AUTO
#   END
#  END
END
#

# Start of LAYER DEFINITIONS -
  LAYER
   NAME "kml_example"
   TYPE LINE
   STATUS ON
   CONNECTIONTYPE OGR
   CONNECTION "doc_test.kml"
   DATA "Fibertech solution"
   LABELITEM "NAME"
   CLASS
 NAME "Fiber Names"
 STYLE
   COLOR 250 0 0
   OUTLINECOLOR 255 255 255
   #SYMBOL 'pin.png'
   SIZE 6
 END
   LABEL
 SIZE TINY
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 POSITION AUTO
   END
  END
END
#

END



On Mon, Mar 9, 2015 at 5:10 PM, alok mathur  wrote:

> Hi,
>
> I have a kml file in which there is a folder containing both Line and
> Point geometry placemarks. I want to show both line and point geomerty on
> map using mapserver. but the issue is that the data source is same. so how
> can i show the point and line data on map.
> Please help me.
>
>
>
> --
>
> *Alok Mathur* | Software Engineer 2A | Ciena
> Mobile +91 9899413266
>



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Reading KML

2015-03-09 Thread alok mathur
Hi,

I have a kml file in which there is a folder containing both Line and Point
geometry placemarks. I want to show both line and point geomerty on map
using mapserver. but the issue is that the data source is same. so how can
i show the point and line data on map.
Please help me.



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Fwd: kml style

2015-03-05 Thread alok mathur
Please its urgent, if some one could help me out to write the .map file.
-- Forwarded message --
From: alok mathur 
Date: Mon, Mar 2, 2015 at 10:35 PM
Subject: kml style
To: mapserver-users@lists.osgeo.org


Hi,

I am new to mapserver and kml. I want to create a .map file and the
datasource will be the kml file. How could i use the kml style tags or i
have to provide my own style tag in .map file.

Please help me out to write the config file. PFA the sample kml file

-- 

*Alok Mathur*



-- 

*Alok Mathur* | Software Engineer 2A | Ciena
Mobile +91 9899413266


KML_Samples.kml
Description: application/vnd.google-earth.kml
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] kml style

2015-03-05 Thread alok mathur
Hi,

I am new to mapserver and kml. I want to create a .map file and the
datasource will be the kml file. How could i use the kml style tags or i
have to provide my own style tag in .map file.

Please help me out to write the config file. PFA the sample kml file

-- 

*Alok Mathur*


KML_Samples.kml
Description: application/vnd.google-earth.kml
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Mapserver + KML

2015-02-24 Thread alok mathur
Hi,

I am new to Mapserver and KML. According to my knowledge i found that
mapserver reads KML file but only some elements in that.
Is there anyway to read KML style tag using mapserver and plot a map with
same style. as in mapserver we have to give our own style.


Thanks!

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