Point shapefile freezes mapnik

View: New views
5 Messages — Rating Filter:   Alert me  

Point shapefile freezes mapnik

by willt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

I've been trying to render a simple point shapefile, however mapnik just locks up (using 100% of one core).
I've tried this both in pure python and using an xml map file (see extract below).

It renders the world_borders shapefile in the Hello World example beautifully, but it won't do a simple point shapefile!

Version: 0.600
OS: Ubuntu Jaunty

Can anyone help please?

Cheers, Will T

<Style name="Style2">
<Rule>
<PointSymbolizer file="/tmp/pub.png" width="16" height="16" type="png" />
</Rule>
</Style>
<Layer name="points" srs="+proj=latlong +datum=WGS84">
    <StyleName>Style2</StyleName>
    <Datasource>
        <Parameter name="type">shape</Parameter>
        <Parameter name="file">pointtest.shp</Parameter>
    </Datasource>
</Layer>

Re: Point shapefile freezes mapnik

by Artem Pavlenko-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Will,

Welcome to Mapnik! Could you post your shape file somewhere to have a look.
Also, could you provide more info about your setup.

Regards,
Artem

2009/6/11 willt <willtemperley@...>:

>
> Dear all,
>
> I've been trying to render a simple point shapefile, however mapnik just
> locks up (using 100% of one core).
> I've tried this both in pure python and using an xml map file (see extract
> below).
>
> It renders the world_borders shapefile in the Hello World example
> beautifully, but it won't do a simple point shapefile!
>
> Version: 0.600
> OS: Ubuntu Jaunty
>
> Can anyone help please?
>
> Cheers, Will T
>
> <Style name="Style2">
> <Rule>
> <PointSymbolizer file="/tmp/pub.png" width="16" height="16" type="png" />
> </Rule>
> </Style>
> <Layer name="points" srs="+proj=latlong +datum=WGS84">
>    <StyleName>Style2</StyleName>
>    <Datasource>
>        <Parameter name="type">shape</Parameter>
>        <Parameter name="file">pointtest.shp</Parameter>
>    </Datasource>
> </Layer>
> --
> View this message in context: http://www.nabble.com/Point-shapefile-freezes-mapnik-tp23978792p23978792.html
> Sent from the Mapnik - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Mapnik-users mailing list
> Mapnik-users@...
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Point shapefile freezes mapnik

by willt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the quick response, Artem.

I've put the shapefile up at:
http://map.nsms.ox.ac.uk/media/temp/pointtest.zip

My system is a Dell Optiplex 755 with intel core2 duo, running ubuntu
jaunty jackalope (9.04).
I built mapnik with cairo support.

I've just done a debug build on an ubuntu hardy 8.0.4.1 server - Dell
poweredge quad core.
I get the same problem.

It's a multipoint shapefile - I wonder if that has anything to do with it?

Cheers

Will



2009/6/11 Artem Pavlenko <artem@...>:

> Hi Will,
>
> Welcome to Mapnik! Could you post your shape file somewhere to have a look.
> Also, could you provide more info about your setup.
>
> Regards,
> Artem
>
> 2009/6/11 willt <willtemperley@...>:
>>
>> Dear all,
>>
>> I've been trying to render a simple point shapefile, however mapnik just
>> locks up (using 100% of one core).
>> I've tried this both in pure python and using an xml map file (see extract
>> below).
>>
>> It renders the world_borders shapefile in the Hello World example
>> beautifully, but it won't do a simple point shapefile!
>>
>> Version: 0.600
>> OS: Ubuntu Jaunty
>>
>> Can anyone help please?
>>
>> Cheers, Will T
>>
>> <Style name="Style2">
>> <Rule>
>> <PointSymbolizer file="/tmp/pub.png" width="16" height="16" type="png" />
>> </Rule>
>> </Style>
>> <Layer name="points" srs="+proj=latlong +datum=WGS84">
>>    <StyleName>Style2</StyleName>
>>    <Datasource>
>>        <Parameter name="type">shape</Parameter>
>>        <Parameter name="file">pointtest.shp</Parameter>
>>    </Datasource>
>> </Layer>
>> --
>> View this message in context: http://www.nabble.com/Point-shapefile-freezes-mapnik-tp23978792p23978792.html
>> Sent from the Mapnik - Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Mapnik-users mailing list
>> Mapnik-users@...
>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>>
>
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Point shapefile freezes mapnik

by willt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK, just tried this out with a simple point shapefile (no multipoints)
and it ran perfectly. At least I've got a workaround now.
Must be a bug with multipoint shapefile handling, no?

Cheers, Will


2009/6/11 William Temperley <willtemperley@...>:

> Thanks for the quick response, Artem.
>
> I've put the shapefile up at:
> http://map.nsms.ox.ac.uk/media/temp/pointtest.zip
>
> My system is a Dell Optiplex 755 with intel core2 duo, running ubuntu
> jaunty jackalope (9.04).
> I built mapnik with cairo support.
>
> I've just done a debug build on an ubuntu hardy 8.0.4.1 server - Dell
> poweredge quad core.
> I get the same problem.
>
> It's a multipoint shapefile - I wonder if that has anything to do with it?
>
> Cheers
>
> Will
>
>
>
> 2009/6/11 Artem Pavlenko <artem@...>:
>> Hi Will,
>>
>> Welcome to Mapnik! Could you post your shape file somewhere to have a look.
>> Also, could you provide more info about your setup.
>>
>> Regards,
>> Artem
>>
>> 2009/6/11 willt <willtemperley@...>:
>>>
>>> Dear all,
>>>
>>> I've been trying to render a simple point shapefile, however mapnik just
>>> locks up (using 100% of one core).
>>> I've tried this both in pure python and using an xml map file (see extract
>>> below).
>>>
>>> It renders the world_borders shapefile in the Hello World example
>>> beautifully, but it won't do a simple point shapefile!
>>>
>>> Version: 0.600
>>> OS: Ubuntu Jaunty
>>>
>>> Can anyone help please?
>>>
>>> Cheers, Will T
>>>
>>> <Style name="Style2">
>>> <Rule>
>>> <PointSymbolizer file="/tmp/pub.png" width="16" height="16" type="png" />
>>> </Rule>
>>> </Style>
>>> <Layer name="points" srs="+proj=latlong +datum=WGS84">
>>>    <StyleName>Style2</StyleName>
>>>    <Datasource>
>>>        <Parameter name="type">shape</Parameter>
>>>        <Parameter name="file">pointtest.shp</Parameter>
>>>    </Datasource>
>>> </Layer>
>>> --
>>> View this message in context: http://www.nabble.com/Point-shapefile-freezes-mapnik-tp23978792p23978792.html
>>> Sent from the Mapnik - Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Mapnik-users mailing list
>>> Mapnik-users@...
>>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>>>
>>
>
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Point shapefile freezes mapnik

by Artem Pavlenko-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/6/11 William Temperley <willtemperley@...>:
> OK, just tried this out with a simple point shapefile (no multipoints)
> and it ran perfectly. At least I've got a workaround now.
> Must be a bug with multipoint shapefile handling, no?

Sounds like it. I'll have a look later on.
Cheers,
Artem

>
> Cheers, Will
>
>
> 2009/6/11 William Temperley <willtemperley@...>:
>> Thanks for the quick response, Artem.
>>
>> I've put the shapefile up at:
>> http://map.nsms.ox.ac.uk/media/temp/pointtest.zip
>>
>> My system is a Dell Optiplex 755 with intel core2 duo, running ubuntu
>> jaunty jackalope (9.04).
>> I built mapnik with cairo support.
>>
>> I've just done a debug build on an ubuntu hardy 8.0.4.1 server - Dell
>> poweredge quad core.
>> I get the same problem.
>>
>> It's a multipoint shapefile - I wonder if that has anything to do with it?
>>
>> Cheers
>>
>> Will
>>
>>
>>
>> 2009/6/11 Artem Pavlenko <artem@...>:
>>> Hi Will,
>>>
>>> Welcome to Mapnik! Could you post your shape file somewhere to have a look.
>>> Also, could you provide more info about your setup.
>>>
>>> Regards,
>>> Artem
>>>
>>> 2009/6/11 willt <willtemperley@...>:
>>>>
>>>> Dear all,
>>>>
>>>> I've been trying to render a simple point shapefile, however mapnik just
>>>> locks up (using 100% of one core).
>>>> I've tried this both in pure python and using an xml map file (see extract
>>>> below).
>>>>
>>>> It renders the world_borders shapefile in the Hello World example
>>>> beautifully, but it won't do a simple point shapefile!
>>>>
>>>> Version: 0.600
>>>> OS: Ubuntu Jaunty
>>>>
>>>> Can anyone help please?
>>>>
>>>> Cheers, Will T
>>>>
>>>> <Style name="Style2">
>>>> <Rule>
>>>> <PointSymbolizer file="/tmp/pub.png" width="16" height="16" type="png" />
>>>> </Rule>
>>>> </Style>
>>>> <Layer name="points" srs="+proj=latlong +datum=WGS84">
>>>>    <StyleName>Style2</StyleName>
>>>>    <Datasource>
>>>>        <Parameter name="type">shape</Parameter>
>>>>        <Parameter name="file">pointtest.shp</Parameter>
>>>>    </Datasource>
>>>> </Layer>
>>>> --
>>>> View this message in context: http://www.nabble.com/Point-shapefile-freezes-mapnik-tp23978792p23978792.html
>>>> Sent from the Mapnik - Users mailing list archive at Nabble.com.
>>>>
>>>> _______________________________________________
>>>> Mapnik-users mailing list
>>>> Mapnik-users@...
>>>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>>>>
>>>
>>
>
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users